]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: data sync markers include timestamp from datalog entry 32819/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 17 Dec 2019 19:26:56 +0000 (14:26 -0500)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 14:19:01 +0000 (15:19 +0100)
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>
(cherry picked from commit b403e011185a98a7ae2d3fb6246f0b1131a5f9a9)

src/rgw/rgw_data_sync.cc

index 0920e66ecf2ce51e680461f6ba8cc69da58e4f5b..515bdcb52286a35071f571ecb441c95c0abd05a6 100644 (file)
@@ -902,6 +902,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 *store = sync_env->store;