From: Samuel Just Date: Thu, 20 Jul 2023 04:01:04 +0000 (-0700) Subject: include/rados/rados_types.hpp: add err_t::has_errors() X-Git-Tag: v19.3.0~296^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ea79f1e34305f5a2e7266ec790ad84c4953108c;p=ceph.git include/rados/rados_types.hpp: add err_t::has_errors() Signed-off-by: Samuel Just --- diff --git a/src/include/rados/rados_types.hpp b/src/include/rados/rados_types.hpp index 84023579b3ec..e19e52127646 100644 --- a/src/include/rados/rados_types.hpp +++ b/src/include/rados/rados_types.hpp @@ -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; }