]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: note missing coll/oid in exception
authorKefu Chai <kchai@redhat.com>
Wed, 23 Jan 2019 09:51:46 +0000 (17:51 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 29 Jan 2019 11:32:59 +0000 (19:32 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/cyan_store.cc

index ab0a8288d07475da1417e88a6cb894c1772af902..2cac32c9c3b9ef7913740cbe86e40e7586f21faf 100644 (file)
@@ -132,11 +132,11 @@ seastar::future<bufferlist> CyanStore::read(CollectionRef c,
   logger().info("{} {} {} {}~{}",
                 __func__, c->cid, oid, offset, len);
   if (!c->exists) {
-    throw std::runtime_error("collection does not exist");
+    throw std::runtime_error(fmt::format("collection does not exist: {}", c->cid));
   }
   ObjectRef o = c->get_object(oid);
   if (!o) {
-    throw std::runtime_error("object does not exist");
+    throw std::runtime_error(fmt::format("object does not exist: {}", oid));
   }
   if (offset >= o->get_size())
     return seastar::make_ready_future<bufferlist>();