From 398b4e73fa032c39337e30ea7392a03115669acc Mon Sep 17 00:00:00 2001 From: Sergii Glushchenko Date: Tue, 10 Dec 2024 11:08:35 +0100 Subject: [PATCH] Do not expose internal versions in scan --- src/storage/kv/transaction.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/storage/kv/transaction.rs b/src/storage/kv/transaction.rs index 8f6beaf3..475d499c 100644 --- a/src/storage/kv/transaction.rs +++ b/src/storage/kv/transaction.rs @@ -60,8 +60,8 @@ impl Mode { } } -/// ScanResult is a tuple containing the key, value, timestamp, and commit timestamp of a key-value pair. -pub type ScanResult = (Vec, Vec, u64, u64); +/// ScanResult is a tuple containing the key, value, and commit timestamp of a key-value pair. +pub type ScanResult = (Vec, Vec, u64); /// ScanResult is a tuple containing the key, value, timestamp, and info about whether the key is deleted. pub type ScanVersionResult = (Vec, Vec, u64, bool); @@ -430,8 +430,8 @@ impl Transaction { // Resolve the value reference to get the actual value. let v = value.resolve(&self.core)?; - // Add the value, version, and timestamp to the results vector. - results.push((key, v, *version, *ts)); + // Add the key, value, and timestamp to the results vector. + results.push((key, v, *ts)); } // Return the results.