Pārlūkot izejas kodu

backend: create bucket should increase pending

Xiang Li 10 gadi atpakaļ
vecāks
revīzija
5dd8af444a
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      storage/backend/batch_tx.go

+ 1 - 0
storage/backend/batch_tx.go

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