]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use explicit ghobject_t ctor for asock truncate
authorSage Weil <sage@redhat.com>
Thu, 18 Jun 2015 23:06:26 +0000 (16:06 -0700)
committerSage Weil <sage@redhat.com>
Fri, 19 Jun 2015 00:37:58 +0000 (17:37 -0700)
This is not allowed on ec pools, so we're safe.

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

index 7d866ea8cd9080f28917d1c9f49f91bdb950caea..6805cb2902f81e5b6633ad26ed9a52aebcd2a058 100644 (file)
@@ -4142,7 +4142,7 @@ void TestOpsSocketHook::test_ops(OSDService *service, ObjectStore *store,
     } else if (command == "truncobj") {
       int64_t trunclen;
       cmd_getval(service->cct, cmdmap, "len", trunclen);
-      t.truncate(coll_t(pgid), obj, trunclen);
+      t.truncate(coll_t(pgid), ghobject_t(obj), trunclen);
       r = store->apply_transaction(t);
       if (r < 0)
        ss << "error=" << r;