From bc5df2b4497104c2a8747daf0530bb5184f9fecb Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Tue, 10 Oct 2017 20:17:11 +0100 Subject: [PATCH] mon/OSDMonitor: prune full maps on encode_pending If we have gone over a safety threshold for number of versions, start pruning full osdmaps, poking holes in the sequence. To make up for the missing maps, we will rebuild full maps based on the incremental maps and the closest pinned full map we have available. Signed-off-by: Joao Eduardo Luis --- src/common/options.cc | 38 ++ src/mon/Monitor.cc | 7 + src/mon/OSDMonitor.cc | 499 +++++++++++++++++- src/mon/OSDMonitor.h | 91 +++- src/mon/PaxosService.h | 2 +- src/mon/mon_types.h | 14 + .../cli/monmaptool/feature-set-unset-list.t | 28 +- 7 files changed, 660 insertions(+), 19 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 1951fad63829..c9ddfa9c7121 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1124,6 +1124,36 @@ std::vector