rename LockWithoutHook to LockOutsideApply and add LockInsideApply

This commit is contained in:
ahrtr
2022-04-06 05:07:07 +08:00
parent 47038593e9
commit e155e50886
25 changed files with 106 additions and 71 deletions

View File

@ -231,7 +231,7 @@ func bootstrapBackend(cfg config.ServerConfig, haveWAL bool, st v2store.Store, s
}
}
if beExist {
err = schema.Validate(cfg.Logger, be.BatchTx())
err = schema.Validate(cfg.Logger, be.ReadTx())
if err != nil {
cfg.Logger.Error("Failed to validate schema", zap.Error(err))
return nil, err