backend: create bucket should increase pending

This commit is contained in:
Xiang Li 2016-01-06 20:25:50 -08:00
parent eab052d5c4
commit 5dd8af444a

View File

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