Skip to content

Commit

Permalink
Fix transaction in UpdateAndFindMinSyncedVV
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Oct 25, 2024
1 parent bd2ebe9 commit 1b88ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/backend/database/memory/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ func (d *DB) UpdateAndFindMinSyncedVersionVectorAfterPushPull(
}

// 02. Find all version vectors of the given document from DB.
txn := d.db.Txn(true)
txn := d.db.Txn(false)
defer txn.Abort()
iterator, err := txn.Get(tblVersionVectors, "doc_id", docRefKey.DocID.String())
if err != nil {
Expand Down

0 comments on commit 1b88ea1

Please sign in to comment.