Skip to content

Commit d5715c7

Browse files
author
HuangYi
committed
cleanup
1 parent ca1b042 commit d5715c7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

batch.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ func (b *BatchWithFlusher) Delete(key []byte) error {
7474

7575
batchSizeAfter, err := b.estimateSizeAfterSetting(key, []byte{})
7676
if err != nil {
77-
b.mtx.Unlock()
7877
return err
7978
}
8079
if batchSizeAfter > b.flushThreshold {

0 commit comments

Comments
 (0)