Skip to content

Commit 866f965

Browse files
authored
feat(cubestore): Use XXH3 checksum alg for RocksDB (#6339)
1 parent 4e49572 commit 866f965

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

rust/cubestore/cubestore/src/metastore/rocks_store.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,15 +521,17 @@ pub struct RocksStoreConfig {
521521
impl RocksStoreConfig {
522522
pub fn metastore_default() -> Self {
523523
Self {
524-
checksum_type: RocksStoreChecksumType::XXHash,
525-
cache_capacity: 1024 * 8,
524+
// Supported since RocksDB 6.27
525+
checksum_type: RocksStoreChecksumType::XXH3,
526+
cache_capacity: 8 * 1024 * 1024,
526527
}
527528
}
528529

529530
pub fn cachestore_default() -> Self {
530531
Self {
531-
checksum_type: RocksStoreChecksumType::XXHash,
532-
cache_capacity: 1024 * 8,
532+
// Supported since RocksDB 6.27
533+
checksum_type: RocksStoreChecksumType::XXH3,
534+
cache_capacity: 8 * 1024 * 1024,
533535
}
534536
}
535537
}

0 commit comments

Comments
 (0)