]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMonitor: make remove_redundant_pg_temp clear primary, too
authorGreg Farnum <greg@inktank.com>
Wed, 15 Jan 2014 23:24:38 +0000 (15:24 -0800)
committerGreg Farnum <greg@inktank.com>
Thu, 16 Jan 2014 00:33:06 +0000 (16:33 -0800)
commit412afea976702087d2de14b6c8791d764fe1fc50
treeb26d316e40898f1bf2c289e7a489019392979fdd
parente2db4aea87be15e7c54987bb8bf0f02c08a527f4
OSDMonitor: make remove_redundant_pg_temp clear primary, too

So that this works with future CRUSH changes, we copy the map and clear
out the primary_temp, then compare its output with the real map's output. If
they match, remove the primary_temp from the real map.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/mon/OSDMonitor.cc