-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14cd5b4
commit 6d0c54f
Showing
2 changed files
with
2 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,7 +161,7 @@ func rewriteDB(db *bv1.DB, diffs []PoolDiff, heights []uint64, ver uint32) error | |
for i, h := range heights { | ||
err := storeDiffTx(txn, &diffs[i], h) | ||
// If this transaction got too big, commit and make a new one. | ||
if errors.Is(err, badger.ErrTxnTooBig) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ukane-philemon
Author
Collaborator
|
||
if errors.Is(err, bv1.ErrTxnTooBig) { | ||
if err = txn.Commit(); err != nil { | ||
txn.Discard() | ||
return err | ||
|
I was checking against
v3. ErrTxnTooBig
causing unnecessary error/failed tests.