-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mvcc: fix panic on *bolt.Tx.Size after commit
1. batchTx.commit(false) from newBatchTx 2. batchTx.commit(true) from stopping backend 3. batchTx.commit(false) from ongoing mvcc Hash call would panic because *bolt.Tx.Commit in batchTx.commit initializes *bolt.Tx.db and *bolt.Tx.meta as nil, and subsequent *bolt.Tx.Size() call refers to this nil pointer (panic).
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters