From b403e011185a98a7ae2d3fb6246f0b1131a5f9a9 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 17 Dec 2019 14:26:56 -0500 Subject: [PATCH] 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 --- src/rgw/rgw_data_sync.cc | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.5