From: Greg Farnum Date: Thu, 19 Dec 2013 01:41:54 +0000 (-0800) Subject: OSDMap: add primary_temp to apply_incremental() X-Git-Tag: v0.78~329^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e9e615cb128d40e57b196db1470317a702d5d6ef;p=ceph.git OSDMap: add primary_temp to apply_incremental() Signed-off-by: Greg Farnum --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 8f2e8e4fe833..58325a5755a3 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -1152,6 +1152,15 @@ int OSDMap::apply_incremental(const Incremental &inc) (*pg_temp)[p->first] = p->second; } + for (map::const_iterator p = inc.new_primary_temp.begin(); + p != inc.new_primary_temp.end(); + ++p) { + if (p->second == -1) + primary_temp->erase(p->first); + else + (*primary_temp)[p->first] = p->second; + } + // blacklist for (map::const_iterator p = inc.new_blacklist.begin(); p != inc.new_blacklist.end();