]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/mon: subscribe (onetime) to pg creations on connect
authorSage Weil <sage@inktank.com>
Thu, 19 Jul 2012 23:47:23 +0000 (16:47 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 20 Jul 2012 00:13:09 +0000 (17:13 -0700)
commitdec936923fa7c9b15caea7ecffcf230d80fc1f85
tree901d30d8e08c9415757dd25c062ee13b65a6b579
parent7f58b9beee10a829c3ebacdb51d48224789d3e14
osd/mon: subscribe (onetime) to pg creations on connect

Ask the monitor for pending pg creations each time we connect.

Normally, this is a freebie check.  If there are pending creations, though,
it ensures that the OSD finds out about them even if the original lame
broadcast didn't reach it.  Specifically:

 - osd is hunting for a monitor, but isn't yet connected
 - new pgs are created
 - send_pg_creates() sends out create messages, but osd does get it
 - osd finally connects to a mon

Fixes: #2151 (tho the bug description is bad)
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/mon/Monitor.cc
src/mon/PGMonitor.cc
src/mon/PGMonitor.h
src/osd/OSD.cc