Skip to content

Commit

Permalink
Comment was outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
arpad-m committed Aug 12, 2023
1 parent b97b207 commit 45eda20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pageserver/src/tenant/storage_layer/delta_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,8 @@ impl DeltaLayerInner {
};
let pos = BlobRef(value).pos();
if let Some(last) = all_keys.last_mut() {
// subtract offset of new key BLOB and first blob of this key
// to get total size of values associated with this key
// subtract offset of the current and last entries to get the size
// of the value associated with this (key, lsn) tuple
let first_pos = last.size;
last.size = pos - first_pos;
}
Expand Down

0 comments on commit 45eda20

Please sign in to comment.