Skip to content

Commit

Permalink
Remove unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Sep 29, 2023
1 parent 647007e commit 8d1ecf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/file_backend/file_homeobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void FileHomeObject::_recover() {
LOGI("discovered [pg_dir={}] [pg_id={}]", pg_dir.string(), pgid);
auto pg = PGInfo(pgid);
pg.replica_set_uuid = boost::uuids::random_generator()();
auto [it, happened] = _pg_map.try_emplace(pgid, std::make_unique< PG >(PGInfo(pgid)));
auto [it, happened] = _pg_map.try_emplace(pgid, std::make_unique< PG >(std::move(pg)));
auto& s_list = it->second->shards_;
RELEASE_ASSERT(happened, "Unknown map insert error!");
for (auto const& shard_file_e : std::filesystem::directory_iterator{pg_dir_e}) {
Expand Down

0 comments on commit 8d1ecf7

Please sign in to comment.