From 87ef3e1cd800b93e4a52377d3ff3ab0ec0db4d77 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Thu, 13 Apr 2023 10:18:19 +0300 Subject: [PATCH] Add a comment for is_write_write_conflict() --- core/mvcc/database/src/database.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/mvcc/database/src/database.rs b/core/mvcc/database/src/database.rs index e9ec67610..b5b727e1b 100644 --- a/core/mvcc/database/src/database.rs +++ b/core/mvcc/database/src/database.rs @@ -218,6 +218,8 @@ impl Database { } } +/// 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, tx: &Transaction,