]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: fix cache tier scrub again
authorSage Weil <sage@inktank.com>
Sun, 30 Mar 2014 05:28:13 +0000 (22:28 -0700)
committerSage Weil <sage@inktank.com>
Sun, 30 Mar 2014 05:28:13 +0000 (22:28 -0700)
This condition was flipped from commit eb71924ea27e78d97bd45674ef5e6a7f
and the test case in c3292e48483d861148322590ea1f05afd28cc2d3 still didn't
catch it.  (It does now.)

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 23248ee56d780de2137daa91c3a0c689041cc511..27528c846430e8306ffbcaa8e85c99c407ef8410 100644 (file)
@@ -11151,7 +11151,7 @@ void ReplicatedPG::_scrub(ScrubMap& scrubmap)
     //
 
     if (!next_clone.is_min() && next_clone != soid &&
-       pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE) {
+       pool.info.cache_mode != pg_pool_t::CACHEMODE_NONE) {
       // it is okay to be missing one or more clones in a cache tier.
       // skip higher-numbered clones in the list.
       while (curclone != snapset.clones.rend() &&