Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoljub-duric committed Oct 26, 2023
1 parent a55af9e commit 2a75e50
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/memory_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ impl<M: Memory> MemoryManagerInner<M> {
.or_insert(vec_buckets);
}

let mem_mgr = if last_occupied_bucket == -1 {
if last_occupied_bucket == -1 {
Self {
memory,
allocated_buckets: header.num_allocated_buckets,
Expand Down Expand Up @@ -469,19 +469,7 @@ impl<M: Memory> MemoryManagerInner<M> {
memory_buckets,
freed_buckets,
}
};

// Update the header.
mem_mgr.save_header();

// Rewrite the stable store to be layout V2.
write(
&mem_mgr.memory,
bucket_indexes_offset().get(),
mem_mgr.get_bucket_ids_in_bytes().as_ref(),
);

mem_mgr
}
}

fn load(memory: M) -> Self {
Expand Down

0 comments on commit 2a75e50

Please sign in to comment.