]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_objectstore_test: fix warning
authorSage Weil <sage@redhat.com>
Wed, 9 Dec 2015 21:19:58 +0000 (16:19 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:07:17 +0000 (13:07 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/objectstore/store_test.cc

index 4837bd499ec6721f1277b04dfcaab7a5dc5e6fd3..aa387bd61bf5d850783000dc3f09fbf47973f3b6 100644 (file)
@@ -1379,6 +1379,7 @@ public:
       vector<ghobject_t> objects;
       int r = store->collection_list(cid, ghobject_t(), ghobject_t::get_max(),
                                     true, 10, &objects, 0);
+      assert(r >= 0);
       if (objects.empty())
        break;
       ObjectStore::Transaction t;