]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix transition from full to incremental meta sync 13920/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 10 Mar 2017 16:25:35 +0000 (11:25 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 10 Mar 2017 16:31:49 +0000 (11:31 -0500)
when transitioning to incremental sync, we need to write temp_marker
instead of sync_marker, because temp_marker has replaced the full sync
marker (which is a metadata key, rather than an log marker) with
next_step_marker

this was breaking the metadata checkpoint in test_multi.py, because it
was comparing metadata keys (i.e. 'user:zone.user') against mdlog
markers

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sync.cc

index 5925f556dfab701e198dbc04b3ad85e0745ccb0e..3e21ce3a25997797ede5bc2faabe1483ebdf19e2 100644 (file)
@@ -1485,7 +1485,7 @@ public:
          using WriteMarkerCR = RGWSimpleRadosWriteCR<rgw_meta_sync_marker>;
          yield call(new WriteMarkerCR(sync_env->async_rados, sync_env->store,
                                       rgw_raw_obj(pool, sync_env->shard_obj_name(shard_id)),
-                                      sync_marker));
+                                      *temp_marker));
         }
 
         if (retcode < 0) {