]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
include/rados/rados_types.hpp: add err_t::has_errors()
authorSamuel Just <sjust@redhat.com>
Thu, 20 Jul 2023 04:01:04 +0000 (21:01 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 11 Dec 2023 04:10:17 +0000 (04:10 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/include/rados/rados_types.hpp

index 84023579b3eccd2bfbc6c38d31e99a90e84d0cef..e19e521276463a11d654b870e29f0ec43e63dbde 100644 (file)
@@ -137,6 +137,9 @@ struct err_t {
   bool has_snapset_corrupted() const {
     return errors & SNAPSET_CORRUPTED;
   }
+  bool has_errors() const {
+    return errors;
+  }
   bool has_shallow_errors() const {
     return errors & SHALLOW_ERRORS;
   }