Skip to content

Commit

Permalink
fix: combine_with_higher_base_epoch_remove_bytes should use old owner…
Browse files Browse the repository at this point in the history
… id instead of merged one (#349)
  • Loading branch information
QuantumExplorer authored Jan 14, 2025
1 parent 0cce59e commit c8108a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grovedb-epoch-based-storage-flags/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ impl StorageFlags {
"can not remove bytes when there is no epoch".to_string(),
));
}
let identifier = owner_id.copied().unwrap_or_default();
// we must use our owner id, because we would be removing bytes from it
let identifier = self.owner_id().copied().unwrap_or_default();
let sectioned_bytes = sectioned_bytes_by_identifier.get(&identifier).ok_or(
StorageFlagsError::MergingStorageFlagsFromDifferentOwners(
"can not remove bytes when there is no epoch".to_string(),
Expand Down

0 comments on commit c8108a2

Please sign in to comment.