Skip to content

Commit

Permalink
smallfix
Browse files Browse the repository at this point in the history
  • Loading branch information
qinzuoyan committed Jan 10, 2019
1 parent ee580cb commit 1d6c3cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/pegasus_server_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2366,12 +2366,14 @@ void pegasus_server_impl::update_checkpoint_reserve(const std::map<std::string,
if (find != envs.end()) {
if (!dsn::buf2int32(find->second, count) || count <= 0) {
derror_replica("{}={} is invalid.", find->first, find->second);
return;
}
}
find = envs.find(ROCKDB_CHECKPOINT_RESERVE_TIME_SECONDS);
if (find != envs.end()) {
if (!dsn::buf2int32(find->second, time) || time < 0) {
derror_replica("{}={} is invalid.", find->first, find->second);
return;
}
}

Expand Down

0 comments on commit 1d6c3cd

Please sign in to comment.