File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,15 @@ func (l *jaegerLogrus) Error(s string) {
68
68
l .Entry .Error (s )
69
69
}
70
70
71
- func NewDatabaseEngine (readonly bool , version string ) * sqle.Engine {
71
+ func NewDatabaseEngine (readonly bool , version string , parallelism int ) * sqle.Engine {
72
72
catalog := sql .NewCatalog ()
73
73
ab := analyzer .NewBuilder (catalog )
74
74
if readonly {
75
75
ab = ab .ReadOnly ()
76
76
}
77
-
78
- if c . Parallelism > 1 {
79
- ab = ab .WithParallelism (int ( c . Parallelism ) )
77
+
78
+ if parallelism > 1 {
79
+ ab = ab .WithParallelism (parallelism )
80
80
}
81
81
82
82
a := ab .Build ()
@@ -162,7 +162,7 @@ func (c *Server) Execute(args []string) error {
162
162
163
163
func (c * Server ) buildDatabase () error {
164
164
if c .engine == nil {
165
- c .engine = NewDatabaseEngine (c .ReadOnly , c .Version )
165
+ c .engine = NewDatabaseEngine (c .ReadOnly , c .Version , int ( c . Parallelism ) )
166
166
}
167
167
168
168
c .pool = gitbase .NewRepositoryPool ()
Original file line number Diff line number Diff line change @@ -852,7 +852,7 @@ func newSquashEngine() *sqle.Engine {
852
852
853
853
func newBaseEngine () * sqle.Engine {
854
854
foo := gitbase .NewDatabase ("foo" )
855
- engine := command .NewDatabaseEngine (false , "test" )
855
+ engine := command .NewDatabaseEngine (false , "test" , 0 )
856
856
857
857
engine .AddDatabase (foo )
858
858
engine .Catalog .RegisterFunctions (function .Functions )
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ type squashReposIter struct {
47
47
repo * Repository
48
48
row sql.Row
49
49
skipGitErrors bool
50
- done bool
51
50
}
52
51
53
52
// NewAllReposIter returns an iterator that will return all repositories
You can’t perform that action at this time.
0 commit comments