From: Casey Bodley Date: Tue, 17 Dec 2019 19:26:56 +0000 (-0500) Subject: rgw: data sync markers include timestamp from datalog entry X-Git-Tag: v15.1.0~441^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32309%2Fhead;p=ceph.git rgw: data sync markers include timestamp from datalog entry this corrects the output of 'radosgw-admin data sync status' to show the timestamp of the last datalog entry applied Fixes: https://tracker.ceph.com/issues/43359 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index dbf847b4ea0..0812fb27b03 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -912,6 +912,7 @@ public: RGWCoroutine *store_marker(const string& new_marker, uint64_t index_pos, const real_time& timestamp) override { sync_marker.marker = new_marker; sync_marker.pos = index_pos; + sync_marker.timestamp = timestamp; tn->log(20, SSTR("updating marker marker_oid=" << marker_oid << " marker=" << new_marker)); RGWRados *rados = sync_env->store->getRados();