mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: add gofail points before and after OnPreCommitUnsafe
Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
parent
3cf2e79e16
commit
3f18816e7d
@ -337,7 +337,9 @@ func (t *batchTxBuffered) commit(stop bool) {
|
||||
|
||||
func (t *batchTxBuffered) unsafeCommit(stop bool) {
|
||||
if t.backend.hooks != nil {
|
||||
// gofail: var commitBeforePreCommitHook struct{}
|
||||
t.backend.hooks.OnPreCommitUnsafe(t)
|
||||
// gofail: var commitAfterPreCommitHook struct{}
|
||||
}
|
||||
|
||||
if t.backend.readTx.tx != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user