From 189ca7ec642032af4073c809db78307dab0fead4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 2 Feb 2017 10:21:33 -0500 Subject: [PATCH] mon/OSDMonitor: make pre-luminous clients resend ops on split Pre-luminous clients do not understand that a split PG forms a new interval. Make them resend ops to work around this. Signed-off-by: Sage Weil --- src/mon/OSDMonitor.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index f14728c9211..80b83f44d9f 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -5222,6 +5222,9 @@ int OSDMonitor::prepare_command_pool_set(map &cmdmap, return -E2BIG; } p.set_pg_num(n); + // force pre-luminous clients to resend their ops, since they + // don't understand that split PGs now form a new interval. + p.last_force_op_resend_preluminous = pending_inc.epoch; } else if (var == "pgp_num") { if (p.has_flag(pg_pool_t::FLAG_NOPGCHANGE)) { ss << "pool pgp_num change is disabled; you must unset nopgchange flag for the pool first"; -- 2.39.5