Skip to content

Commit

Permalink
chage to emplace
Browse files Browse the repository at this point in the history
  • Loading branch information
pengweisong committed Apr 2, 2022
1 parent 60816a5 commit 2f1ea74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kvstore/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ struct Peers {
return time::WallClock::fastNowInSec() - createdTime > FLAGS_balance_expired_sesc;
}

void setCreatedTime(int time) {
void setCreatedTime(int64_t time) {
createdTime = time;
}

Expand Down
2 changes: 1 addition & 1 deletion src/kvstore/NebulaStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void NebulaStore::loadPartFromDataPath() {

auto spacePart = std::make_pair(spaceId, partId);
if (partSet.find(spacePart) == partSet.end()) {
partSet.insert(std::make_pair(spaceId, partId));
partSet.emplace(std::make_pair(spaceId, partId));

// join the balancing peers with meta peers
auto metaStatus = options_.partMan_->partMeta(spaceId, partId);
Expand Down

0 comments on commit 2f1ea74

Please sign in to comment.