mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
This commit is contained in:
parent
12aeb12ac2
commit
dfadd59868
@ -661,7 +661,7 @@ impl Engine {
|
||||
const BATCH_SIZE: Size = Size::mebibyte(1);
|
||||
let mut write_batch = RocksDB::new_write_batch();
|
||||
for (chunk_id, meta) in &mut chunks {
|
||||
if write_batch.size_in_bytes() >= BATCH_SIZE.0 as _ {
|
||||
if write_batch.size_in_bytes() >= BATCH_SIZE.0 as usize {
|
||||
self.meta_store.write(write_batch, true)?;
|
||||
write_batch = RocksDB::new_write_batch();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user