summaryrefslogtreecommitdiff
path: root/src/mon/AuthMonitor.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-08-04 09:37:11 -0700
committerSage Weil <sage@inktank.com>2013-08-04 09:38:49 -0700
commitb7ad89b7a0d1a640bc4f5207746268ec2a26a085 (patch)
tree554842d67f5a08eac79951ed0d0d3652e3ea2556 /src/mon/AuthMonitor.h
parent429f0b82523645401e707f59500aef087a54d35a (diff)
downloadceph-wip-mon-skip-auth-cuttlefish.tar.gz
mon: make max_global_id increase a bit more robustwip-mon-skip-auth-cuttlefish
- Increase it in one go, not with lots of additions - Deal with weird edge cases where max_global_id is not a sane value Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/mon/AuthMonitor.h')
-rw-r--r--src/mon/AuthMonitor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/AuthMonitor.h b/src/mon/AuthMonitor.h
index ddd68cf3317..75243431e39 100644
--- a/src/mon/AuthMonitor.h
+++ b/src/mon/AuthMonitor.h
@@ -130,7 +130,7 @@ private:
void update_from_paxos(bool *need_bootstrap);
void create_pending(); // prepare a new pending
bool prepare_global_id(MMonGlobalID *m);
- void increase_max_global_id();
+ void increase_max_global_id(uint64_t next);
uint64_t assign_global_id(MAuth *m, bool should_increase_max);
// propose pending update to peers
void encode_pending(MonitorDBStore::Transaction *t);