mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
backend: create bucket should increase pending
This commit is contained in:
parent
eab052d5c4
commit
5dd8af444a
@ -52,6 +52,7 @@ func (t *batchTx) UnsafeCreateBucket(name []byte) {
|
||||
if err != nil && err != bolt.ErrBucketExists {
|
||||
log.Fatalf("storage: cannot create bucket %s (%v)", string(name), err)
|
||||
}
|
||||
t.pending++
|
||||
}
|
||||
|
||||
// before calling unsafePut, the caller MUST hold the lock on tx.
|
||||
|
Loading…
x
Reference in New Issue
Block a user