Skip to content

Commit

Permalink
[Cpp] Update manfiest version after write blobs (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Nov 6, 2023
1 parent 116daa1 commit a91c788
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/storage/space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ Status Space::WriteBolb(std::string name, void* blob, int64_t length, bool repla
std::lock_guard<std::mutex> lock(mutex_);
auto next_version = next_manifest_version_++;
auto copied = new Manifest(*manifest_);
copied->set_version(next_version);
copied->remove_blob_if_exist(name);
copied->add_blob({name, length, blob_file_path});
RETURN_NOT_OK(SafeSaveManifest(fs_, path_, copied));
Expand Down

0 comments on commit a91c788

Please sign in to comment.