Merge pull request #8981 from ceph/wip-rgw-test-fix

test/rgw: fix bucket checkpoint

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2016-05-09 11:25:32 -04:00
commit 25eced4c65

View File

@ -323,7 +323,10 @@ class RGWRealm:
markers={}
for entry in sync_status:
val = entry['val']
pos = val['inc_marker']['position'].split('#')[-1] # get rid of shard id; e.g., 6#00000000002.132.3 -> 00000000002.132.3
if val['status'] == 'incremental-sync':
pos = val['inc_marker']['position'].split('#')[-1] # get rid of shard id; e.g., 6#00000000002.132.3 -> 00000000002.132.3
else:
pos = ''
markers[entry['key']] = pos
return markers