From 791255fd8cd9d5609c0affe3c41ac6413be07537 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Sat, 8 Feb 2025 10:20:48 +0200 Subject: [PATCH] MVCC: Add a few comments --- core/mvcc/database/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/mvcc/database/mod.rs b/core/mvcc/database/mod.rs index fb094690d..da04221a2 100644 --- a/core/mvcc/database/mod.rs +++ b/core/mvcc/database/mod.rs @@ -58,7 +58,9 @@ impl LogRecord { /// versions switch to tracking timestamps. #[derive(Clone, Debug, PartialEq, PartialOrd)] enum TxTimestampOrID { + /// A committed transaction's timestamp. Timestamp(u64), + /// The ID of a non-committed transaction. TxID(TxID), } @@ -571,6 +573,7 @@ impl MvStore MvStore