]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: data sync markers include timestamp from datalog entry 32309/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 17 Dec 2019 19:26:56 +0000 (14:26 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 17 Dec 2019 19:38:41 +0000 (14:38 -0500)
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 <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc

index dbf847b4ea0567f9b80b015c147f0ea7179d579e..0812fb27b03bae24b237967c576de01ae20cdcc1 100644 (file)
@@ -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();