From: Casey Bodley Date: Tue, 27 Nov 2018 14:46:17 +0000 (-0500) Subject: librados_cxx: document which nobjects interfaces throw X-Git-Tag: v12.2.11~89^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f000a6bcc5ec385eff265d2eede41d869e7f1fd2;p=ceph.git librados_cxx: document which nobjects interfaces throw Signed-off-by: Casey Bodley (cherry picked from commit d8968a45e5c17e25186c075f554d518fb620d110) Conflicts: src/include/rados/librados.hpp nobjects_begin() overloads --- diff --git a/src/include/rados/librados.hpp b/src/include/rados/librados.hpp index f4cd777df036..ad8276d2db77 100644 --- a/src/include/rados/librados.hpp +++ b/src/include/rados/librados.hpp @@ -110,18 +110,19 @@ namespace librados bool operator!=(const NObjectIterator& rhs) const; const ListObject& operator*() const; const ListObject* operator->() const; - NObjectIterator &operator++(); // Preincrement - NObjectIterator operator++(int); // Postincrement + NObjectIterator &operator++(); //< Preincrement; errors are thrown as exceptions + NObjectIterator operator++(int); //< Postincrement; errors are thrown as exceptions friend class IoCtx; friend class NObjectIteratorImpl; /// 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. + /// move the iterator to a given hash position. this may (will!) be rounded + /// to the nearest pg. errors are thrown as exceptions uint32_t seek(uint32_t pos); - /// move the iterator to a given cursor position + /// move the iterator to a given cursor position. errors are thrown as exceptions uint32_t seek(const ObjectCursor& cursor); /// get current cursor position @@ -890,14 +891,16 @@ namespace librados std::list *lockers); - /// Start enumerating objects for a pool + /// Start enumerating objects for a pool. Errors are thrown as exceptions. NObjectIterator nobjects_begin(); NObjectIterator nobjects_begin(const bufferlist &filter); - /// Start enumerating objects for a pool starting from a hash position + /// Start enumerating objects for a pool starting from a hash position. + /// Errors are thrown as exceptions. NObjectIterator nobjects_begin(uint32_t start_hash_position); NObjectIterator nobjects_begin(uint32_t start_hash_position, const bufferlist &filter); - /// Start enumerating objects for a pool starting from cursor + /// Start enumerating objects for a pool starting from cursor. Errors are + /// thrown as exceptions. NObjectIterator nobjects_begin(const librados::ObjectCursor& cursor); NObjectIterator nobjects_begin(const librados::ObjectCursor& cursor, const bufferlist &filter);