summaryrefslogtreecommitdiffstats
path: root/src/rgw/driver/rados/rgw_sync.cc
diff options
context:
space:
mode:
authorShilpa Jagannath <smanjara@redhat.com>2022-12-20 16:37:55 +0100
committerAdam C. Emerson <aemerson@redhat.com>2023-01-13 15:46:44 +0100
commitfb92311b3e17101c2eee4bc0e4ef7cf3b744bc7a (patch)
treeecea172df939f3cc516b35d61e50f4870490b6cb /src/rgw/driver/rados/rgw_sync.cc
parentrgw: Check for lost lease more often (diff)
downloadceph-fb92311b3e17101c2eee4bc0e4ef7cf3b744bc7a.tar.xz
ceph-fb92311b3e17101c2eee4bc0e4ef7cf3b744bc7a.zip
rgw/multisite: return error from RGWLastCallerWinsCR() to track marker update failures
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Diffstat (limited to 'src/rgw/driver/rados/rgw_sync.cc')
-rw-r--r--src/rgw/driver/rados/rgw_sync.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rgw/driver/rados/rgw_sync.cc b/src/rgw/driver/rados/rgw_sync.cc
index 081bc7772e9..d0ec90796d9 100644
--- a/src/rgw/driver/rados/rgw_sync.cc
+++ b/src/rgw/driver/rados/rgw_sync.cc
@@ -1194,6 +1194,10 @@ int RGWLastCallerWinsCR::operate(const DoutPrefixProvider *dpp) {
cr = nullptr;
yield call(call_cr);
/* cr might have been modified at this point */
+ if (retcode < 0) {
+ ldpp_dout(dpp, 0) << "ERROR: RGWLastCallerWinsCR() failed: retcode=" << retcode << dendl;
+ return set_cr_error(retcode);
+ }
}
return set_cr_done();
}