Skip to content

Commit

Permalink
Do not expose internal versions in scan
Browse files Browse the repository at this point in the history
  • Loading branch information
gsserge committed Dec 10, 2024
1 parent 3cc5ed3 commit 398b4e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/storage/kv/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>, Vec<u8>, u64, u64);
/// ScanResult is a tuple containing the key, value, and commit timestamp of a key-value pair.
pub type ScanResult = (Vec<u8>, Vec<u8>, u64);

/// ScanResult is a tuple containing the key, value, timestamp, and info about whether the key is deleted.
pub type ScanVersionResult = (Vec<u8>, Vec<u8>, u64, bool);
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 398b4e7

Please sign in to comment.