Add a comment for is_write_write_conflict()

This commit is contained in:
Pekka Enberg
2023-04-13 10:18:19 +03:00
parent f51c4ee5a8
commit 87ef3e1cd8

View File

@@ -218,6 +218,8 @@ impl<Clock: LogicalClock> Database<Clock> {
}
}
/// A write-write conflict happens when transaction T_m attempts to update a
/// row version that is currently being updated by an active transaction T_n.
fn is_write_write_conflict(
txs: &HashMap<TxID, Transaction>,
tx: &Transaction,