]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use osr for scan_snaps
authorSage Weil <sage@redhat.com>
Mon, 6 Apr 2015 20:54:46 +0000 (13:54 -0700)
committerSage Weil <sage@redhat.com>
Wed, 19 Aug 2015 21:03:54 +0000 (17:03 -0400)
Updates should be ordered with respect to PG metadata.  Not that it matters
that much since we are doing cleanup/repair work here.

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

index 23961f0df610044188403df2e4fb0b082200fcd9..36c664129a536007d1828f54430037091e9e5ae5 100644 (file)
@@ -3584,7 +3584,7 @@ void PG::_scan_snaps(ScrubMap &smap)
                            << "...repaired";
        }
        snap_mapper.add_oid(hoid, oi_snaps, &_t);
-       r = osd->store->apply_transaction(t);
+       r = osd->store->apply_transaction(osr.get(), t);
        if (r != 0) {
          derr << __func__ << ": apply_transaction got " << cpp_strerror(r)
               << dendl;