]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix radosgw-admin data sync run crash 15938/head
authorlu.shasha <lu.shasha@eisoo.com>
Tue, 27 Jun 2017 02:53:30 +0000 (10:53 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Tue, 27 Jun 2017 02:53:30 +0000 (10:53 +0800)
commitc307910d7131fc290f00bb8e33876e667afb72ec
treeff3349563f270c4d4930ad3780311fca05cc0088
parent94f0cd4b27588c32b0ba5f4a40277ffde02e78c3
rgw: fix radosgw-admin data sync run crash

If sync thread have run before, then run data sync init. sync_status is still remain in rados pool. so no matter sync_status exists or not, if state is StateInit, sync_status.sync_info.num_shards should be updated.

Fixes: http://tracker.ceph.com/issues/20423
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
src/rgw/rgw_data_sync.cc