Skip to content

fix: invalid deleting when removing by worker_id in rocks store#215

Merged
bigbigxu merged 3 commits intoCurvineIO:mainfrom
zuston:fixrocks
Aug 21, 2025
Merged

fix: invalid deleting when removing by worker_id in rocks store#215
bigbigxu merged 3 commits intoCurvineIO:mainfrom
zuston:fixrocks

Conversation

@zuston
Copy link
Copy Markdown
Contributor

@zuston zuston commented Aug 20, 2025

No description provided.

// Get all location information for all block ids.
pub fn get_locations(&self, id: i64) -> CommonResult<Vec<BlockLocation>> {
let prefix = RocksUtils::i64_to_bytes(id);
let iter = self.db.prefix_scan(Self::CF_LOCATION, prefix)?;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To ensure compatibility, I kept CF_LOCATION and CF_BLOCK unchanged, instead of renaming them to CF_LOCATION_TO_BLOCKS and CF_BLOCK_TO_LOCATIONS.

@bigbigxu bigbigxu merged commit 655724d into CurvineIO:main Aug 21, 2025
3 checks passed
@zuston zuston deleted the fixrocks branch August 21, 2025 02:07
@lzjqsdd lzjqsdd added the bug Something isn't working label Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants