]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix propagation of removed snaps to other tiers
authorSage Weil <sage@inktank.com>
Mon, 6 Jan 2014 01:43:05 +0000 (17:43 -0800)
committerSage Weil <sage@inktank.com>
Fri, 10 Jan 2014 19:17:39 +0000 (11:17 -0800)
When we update removed_snaps we do not update snap_seq.  Drop this broken
optimization.

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

index b2be87dc43520e2c116f328dd280bae76fd92b36..2a983b95526c8f83c1986b992cddd016afdc3ea2 100644 (file)
@@ -195,12 +195,6 @@ int OSDMap::Incremental::propagate_snaps_to_tiers(CephContext *cct,
          const pg_pool_t *orig = osdmap.get_pg_pool(*q);
          if (!orig)
            return -EIO;
-
-         // skip update?
-         if (orig->snap_seq == base.snap_seq &&
-             orig->snap_epoch == base.snap_epoch)
-           continue;
-
          tier = get_new_pool(*q, orig);
        } else {
          tier = &r->second;