]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/MemStore: only support bitwise sort order
authorSage Weil <sage@redhat.com>
Mon, 13 Jul 2015 14:51:53 +0000 (10:51 -0400)
committerSage Weil <sage@redhat.com>
Fri, 7 Aug 2015 14:16:00 +0000 (10:16 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/MemStore.cc
src/os/MemStore.h

index 6d60816016c1b1e4549b3bda0a3ec455a33185c4..be6fc77630cbb36e6167c781d3ecf3230f3e90ed 100644 (file)
@@ -422,9 +422,11 @@ bool MemStore::collection_empty(coll_t cid)
 }
 
 int MemStore::collection_list(coll_t cid, ghobject_t start, ghobject_t end,
-                             int max,
+                             bool sort_bitwise, int max,
                              vector<ghobject_t> *ls, ghobject_t *next)
 {
+  if (!sort_bitwise)
+    return -EOPNOTSUPP;
   CollectionRef c = get_collection(cid);
   if (!c)
     return -ENOENT;
index 5233a1564499e178935b7339947c4f689573c9e2..6852bc11edc0ec3b528185aba8bbeb2f0f31b48a 100644 (file)
@@ -307,7 +307,7 @@ public:
   bool collection_exists(coll_t c);
   bool collection_empty(coll_t c);
   int collection_list(coll_t cid, ghobject_t start, ghobject_t end,
-                     int max,
+                     bool sort_bitwise, int max,
                      vector<ghobject_t> *ls, ghobject_t *next);
 
   int omap_get(