Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jul 17, 2024
1 parent 8f4a56d commit 16f6876
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/tx/write_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,15 +475,12 @@ impl<'a> WriteTransaction<'a> {
let mut batch = Batch::with_capacity(self.keyspace, 10);

for (partition_key, memtable) in &self.memtables {
for entry in &memtable.items {
let key = entry.key();
let value = entry.value();

for item in memtable.iter() {
batch.data.push(Item::new(
partition_key.clone(),
key.user_key.clone(),
value.clone(),
key.value_type,
item.key.clone(),
item.value.clone(),
item.value_type,
));
}
}
Expand Down

0 comments on commit 16f6876

Please sign in to comment.