-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: remove localstore dependency. #4965
Conversation
/run-all-test |
/run-all-tests |
leveldb is used in tidb-test |
} | ||
|
||
// End implements autoid.Allocator End interface. | ||
func (alloc *allocator) End() int64 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need End
if it the same as Base
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault, it should return end
/run-all-tests |
/run-all-test tidb-test=pr/388 |
/run-all-test tidb-test=pr/388 |
@coocood PTAL |
@@ -44,7 +44,6 @@ func (s *testBootstrapSuite) TestBootstrap(c *C) { | |||
defer testleak.AfterTest(c)() | |||
store, dom := newStoreWithBootstrap(c, s.dbName) | |||
defer dom.Close() | |||
defer store.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because store has been closed in line 97
perfschema/init.go
Outdated
@@ -349,11 +349,19 @@ func (ps *perfSchema) initialize() { | |||
ps.buildTables() | |||
} | |||
|
|||
func (ps *perfSchema) GetDBMeta() *model.DBInfo { | |||
// GetDBMeta returns the db info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/db/DB
server/tidb_test.go
Outdated
store, err := tidb.NewStore("memory:///tmp/tidb") | ||
store, err := tikv.NewMockTikvStore() | ||
tidb.SetStatsLease(0) | ||
tidb.SetSchemaLease(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this code can be removed. Because we use mock syncer
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.