Skip to content

Commit

Permalink
mon/AuthMonitor: fix assert of version
Browse files Browse the repository at this point in the history
Version shall always be greater than keys_ver below here,
otherwise the prior code logic shall prevent us from going
this far.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Jun 12, 2016
1 parent b8af5f7 commit 39f26f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/AuthMonitor.cc
Expand Up @@ -121,7 +121,7 @@ void AuthMonitor::update_from_paxos(bool *need_bootstrap)
version_t keys_ver = mon->key_server.get_ver();
if (version == keys_ver)
return;
assert(version >= keys_ver);
assert(version > keys_ver);

version_t latest_full = get_version_latest_full();

Expand Down

0 comments on commit 39f26f8

Please sign in to comment.