summaryrefslogtreecommitdiff
path: root/src/mon/AuthMonitor.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-08-05 14:10:27 -0700
committerSage Weil <sage@inktank.com>2013-08-05 14:10:27 -0700
commit60830537cb787ff778e96693c557682367d42ca4 (patch)
tree78b9bed0cad5c759ce8fd334d17cd5feaf9a56c2 /src/mon/AuthMonitor.h
parenta0929955cb84fb8cfdeb551d6863e4955b8e2a71 (diff)
downloadceph-wip-mon-global-id.tar.gz
mon: make max_global_id increase a bit more robustwip-mon-global-id
- 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 30d567a77ca..88bd708faa8 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 min);
uint64_t assign_global_id(MAuth *m, bool should_increase_max);
// propose pending update to peers
void encode_pending(MonitorDBStore::Transaction *t);