etcdserver: add gofail points before and after OnPreCommitUnsafe

Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
Benjamin Wang 2022-11-14 11:02:18 +08:00
parent 3cf2e79e16
commit 3f18816e7d

View File

@ -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 {