]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: update creating_pgs using pending_creatings 14897/head
authorKefu Chai <kchai@redhat.com>
Mon, 1 May 2017 15:48:51 +0000 (23:48 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 1 May 2017 15:48:59 +0000 (23:48 +0800)
commitb2d29568d7e7861a059788de3399b130c05295cc
tree6cfd8595044a2b6af4a859747ffaa4659041e83e
parent6b34e18e34a7ab1b07c17dbbc6dcb1f190c250cb
mon/OSDMonitor: update creating_pgs using pending_creatings

* without this change, in OSDMonitor::update_pending_pgs(), creating_pgs
  is updated directly without lock, and the change will be overwritten
  with pending changes eventually. so we should update it using
  pending_creatings
* also, should acquire the lock in OSDMonitor::send_pg_creates() when
  reading creating_pgs_by_osd_epoch and createing_pgs.

Fixes: http://tracker.ceph.com/issues/19814
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc