summaryrefslogtreecommitdiff
path: root/src/include/rados/librados.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/rados/librados.hpp')
-rw-r--r--src/include/rados/librados.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/rados/librados.hpp b/src/include/rados/librados.hpp
index 46cedd578c5..d788e5ecf61 100644
--- a/src/include/rados/librados.hpp
+++ b/src/include/rados/librados.hpp
@@ -75,6 +75,9 @@ namespace librados
/// get current hash position of the iterator, rounded to the current pg
uint32_t get_pg_hash_position() const;
+ /// move the iterator to a given hash position. this may (will!) be rounded to the nearest pg.
+ uint32_t seek(uint32_t pos);
+
private:
void get_next();
std::tr1::shared_ptr < ObjListCtx > ctx;
@@ -588,7 +591,11 @@ namespace librados
std::list<librados::locker_t> *lockers);
+ /// Start enumerating objects for a pool
ObjectIterator objects_begin();
+ /// Start enumerating objects for a pool starting from a hash position
+ ObjectIterator objects_begin(uint32_t start_hash_position);
+ /// Iterator indicating the end of a pool
const ObjectIterator& objects_end() const;
uint64_t get_last_version();