rebase fixes

This commit is contained in:
Ben Johnson 2021-12-16 09:17:13 -07:00 • committed by Matthew Jaffee
parent c3c02eabb0
commit 4279e2cb2d
2 changed files with 2 additions and 4 deletions

View file

@ -973,8 +973,8 @@ func TestCursor_SplitBranchCells(t *testing.T) {
}
//
c, _ := tx.Cursor("x") //added just for dot code coverage
c.Dump("ignore for coverage")
c.Dump("test.dump")
os.Remove("test.dump")
}
func TestCursor_RemoveCells(t *testing.T) {

View file

@ -695,8 +695,6 @@ func (db *DB) afterCurrentTx(callback func()) {
// it retained by an asynchronous op that wants to happen before we start
// running new tx.
func (db *DB) removeTx(tx *Tx) error {
db.mu.Lock()
defer db.mu.Unlock()
// We might want to trigger a checkpoint. Only for writable
// transactions, and only when either there's nothing else open or we
// really need to.