]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: initialize send_notify on pg load
authorSage Weil <sage@inktank.com>
Sat, 28 Jul 2012 16:19:03 +0000 (09:19 -0700)
committerSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 17:49:16 +0000 (10:49 -0700)
commit9e5d4e61a73343397e67e918e87f1e6dcb8ec72d
tree410d4da96112787b373144387be60ad53af54c91
parentf9ff8dd3b2743ea43ab44fcf10e4821610ced792
osd: initialize send_notify on pg load

When the PG is loaded, we need to set send_notify if we are not the
primary.  Otherwise, if the PG does not go through
start_peering_interval() or experience a role change, we will not set
the flag and tell the primary that we exist.  This can cause problems
for example if we have unfound objects that the primary needs, although
I'm sure there are other bad implications as well.

Fixes: #2866
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/PG.cc
src/osd/PG.h