]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os: add sort type to ObjectStore interface (incomplete)
authorSage Weil <sage@redhat.com>
Mon, 13 Jul 2015 14:50:39 +0000 (10:50 -0400)
committerSage Weil <sage@redhat.com>
Fri, 7 Aug 2015 14:16:00 +0000 (10:16 -0400)
Note that this doesn't build, but it will be easier to review this way.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/ObjectStore.h

index 67cea3488463112b3ceb46f2a1cde6f733dfc14c..5ae7949b097078b144246aaf8af0cb00965e6f54 100644 (file)
@@ -2027,13 +2027,15 @@ public:
    * @param c collection
    * @param start list object that sort >= this value
    * @param end list objects that sort < this value
+   * @param sort_bitwise sort bitwise (instead of legacy nibblewise)
    * @param max return no more than this many results
    * @param seq return no objects with snap < seq
    * @param ls [out] result
    * @param next [out] next item sorts >= this value
    * @return zero on success, or negative error
    */
-  virtual int collection_list(coll_t c, ghobject_t start, ghobject_t end, int max,
+  virtual int collection_list(coll_t c, ghobject_t start, ghobject_t end,
+                             bool sort_bitwise, int max,
                              vector<ghobject_t> *ls, ghobject_t *next) = 0;
 
   /// OMAP