virtual int collection_list_partial(
const ghobject_t &start, ///< [in] object at which to start
const ghobject_t &end, ///< [in] list only objects < end
+ bool sort_bitwise, ///< [in] use bitwise sort
int max_count, ///< [in] return at most max_count objects
vector<ghobject_t> *ls, ///< [out] Listed objects
ghobject_t *next ///< [out] Next object to list
tracepoint(objectstore, collection_empty_exit, ret);
return ret;
}
-int FileStore::collection_list(coll_t c, ghobject_t start, ghobject_t end, int max,
+int FileStore::collection_list(coll_t c, ghobject_t start, ghobject_t end,
+ bool sort_bitwise, int max,
vector<ghobject_t> *ls, ghobject_t *next)
{
if (start.is_max())
if (start < sep) {
dout(10) << __func__ << " first checking temp pool" << dendl;
coll_t temp = c.get_temp();
- int r = collection_list(temp, start, end, max, ls, next);
+ int r = collection_list(temp, start, end, sort_bitwise, max, ls, next);
if (r < 0)
return r;
if (*next != ghobject_t::get_max())
assert(NULL != index.index);
RWLock::RLocker l((index.index)->access_lock);
- r = index->collection_list_partial(start, end, max, ls, next);
+ r = index->collection_list_partial(start, end, sort_bitwise, max, ls, next);
if (r < 0) {
assert(!m_filestore_fail_eio || r != -EIO);
const SequencerPosition &spos);
// collections
- int collection_list(coll_t c, ghobject_t start, ghobject_t end, int max,
+ int collection_list(coll_t c, ghobject_t start, ghobject_t end,
+ bool sort_bitwise, int max,
vector<ghobject_t> *ls, ghobject_t *next);
int list_collections(vector<coll_t>& ls);
int list_collections(vector<coll_t>& ls, bool include_temp);