From 42b3d55ddb2cacd138003db986baf62a9d452a3d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 16 Aug 2013 23:27:39 -0700 Subject: [PATCH] osdc/Objecter: only request map on startup if epoch == 0 Normal clients have no map and need one to get started. If we are the OSD, we will already have one and will get fed maps as they come in. Signed-off-by: Sage Weil --- src/osdc/Objecter.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 39378521b09..af6ebd6ae17 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -229,7 +229,8 @@ void Objecter::init_locked() assert(!initialized); schedule_tick(); - maybe_request_map(); + if (osdmap->get_epoch() == 0) + maybe_request_map(); initialized = true; } -- 2.47.3