]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_types: add pg_pool_t FLAG_COMPLETE_CLONES
authorSage Weil <sage@redhat.com>
Thu, 24 Jul 2014 01:21:38 +0000 (18:21 -0700)
committerSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 23:59:54 +0000 (16:59 -0700)
commitbde3a9f0f610e6af30066dd77949a1249cd658bf
treeb24d3636730bc1ecf0fd32481ca006f63e35b759
parentf19aa8ef0a2cbad7af3135defc1fe3485d377409
osd/osd_types: add pg_pool_t FLAG_COMPLETE_CLONES

Set a flag on the pg_pool_t when we change cache_mode NONE.  This
is because object promotion may promote heads without all of the clones,
and when we switch the cache_mode back those objects may remain.  Do
this on any cache_mode change (to or from NONE) to capture legacy
pools that were set up before this flag existed.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 54bf055c5dadc55acf5731e08712d529b180ffc5)
src/mon/OSDMonitor.cc
src/osd/osd_types.h