When debugging crashes related to `RGWDataChangesLog` shutdown, I
fixed the crashes, but broke the logic that decides whether to print
the error.
Fixes: https://tracker.ceph.com/issues/70864
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
asio::awaitable<void> RGWDataChangesLog::shutdown() {
DoutPrefix dp{cct, ceph_subsys_rgw, "Datalog Shutdown"};
- if (down_flag || !ran_background) {
+ if (down_flag) {
co_return;
}
down_flag = true;
+ if (!ran_background) {
+ co_return;
+ }
renew_stop();
// Revisit this later
if (renew_signal)