From befadd896080e3b01e425fecc8022a173e893eec Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 18 Jun 2015 16:06:26 -0700 Subject: [PATCH] osd: use explicit ghobject_t ctor for asock truncate This is not allowed on ec pools, so we're safe. Signed-off-by: Sage Weil --- src/osd/OSD.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 7d866ea8cd908..6805cb2902f81 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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; -- 2.39.5