]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os, crimson/osd: make list_objects() const.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 12 Aug 2019 18:11:20 +0000 (20:11 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Sat, 24 Aug 2019 01:34:00 +0000 (03:34 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/os/cyan_store.cc
src/crimson/os/cyan_store.h
src/crimson/os/futurized_store.h
src/crimson/osd/pg_backend.cc
src/crimson/osd/pg_backend.h

index 922092711240dbb8ea43d48ed1c5d2e0aaae3e4e..6fa66e18f3510fe4cbc8da947f8c746b8c5ccb84 100644 (file)
@@ -126,7 +126,7 @@ seastar::future<std::vector<ghobject_t>, ghobject_t>
 CyanStore::list_objects(CollectionRef c,
                         const ghobject_t& start,
                         const ghobject_t& end,
-                        uint64_t limit)
+                        uint64_t limit) const
 {
   logger().debug("{} {} {} {} {}",
                  __func__, c->cid, start, end, limit);
index c1a13ca7cd69743bc64477764ed8305f32008ea5..810e54bf6aad4d2d39f2334224600fa6466ba5db 100644 (file)
@@ -64,7 +64,7 @@ public:
     CollectionRef c,
     const ghobject_t& start,
     const ghobject_t& end,
-    uint64_t limit) final;
+    uint64_t limit) const final;
 
   /// Retrieves paged set of values > start (if present)
   seastar::future<bool, omap_values_t> omap_get_values(
index 5287dc4da2d8aac10c89e5ecb96437b0e0e06559..ac8a6fc2d557e37779119fc61c5adb5f3395b870 100644 (file)
@@ -87,7 +87,7 @@ public:
                                          CollectionRef c,
                                          const ghobject_t& start,
                                          const ghobject_t& end,
-                                         uint64_t limit) = 0;
+                                         uint64_t limit) const = 0;
   virtual seastar::future<bool, omap_values_t> omap_get_values(
     CollectionRef c,           ///< [in] collection
     const ghobject_t &oid,     ///< [in] oid
index 30ec868ac38c4ea9f7477ef3f009d764449cdfc4..41e05932d862c581b40356cfe9e583041be0f6af 100644 (file)
@@ -365,7 +365,7 @@ seastar::future<> PGBackend::remove(ObjectState& os,
 }
 
 seastar::future<std::vector<hobject_t>, hobject_t>
-PGBackend::list_objects(const hobject_t& start, uint64_t limit)
+PGBackend::list_objects(const hobject_t& start, uint64_t limit) const
 {
   auto gstart = start.is_min() ? ghobject_t{} : ghobject_t{start, 0, shard};
   return store->list_objects(coll,
index 6c40c09ec7fe350ec8c9063127c36555b14eaf61..0c85dfe266e5097b1df5e6fb59561294be68a781 100644 (file)
@@ -71,7 +71,7 @@ public:
     eversion_t ver);
   seastar::future<std::vector<hobject_t>, hobject_t> list_objects(
     const hobject_t& start,
-    uint64_t limit);
+    uint64_t limit) const;
   seastar::future<> setxattr(
     ObjectState& os,
     const OSDOp& osd_op,