]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: set send_notify on child
authorSage Weil <sage@redhat.com>
Thu, 22 Feb 2018 15:18:28 +0000 (09:18 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:56 +0000 (08:26 -0500)
If we are a non-primary, we need to ensure the split children send
notifies.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc

index 4c68bb152db3a2e29b38281bc226416c29cd8c90..9759312bf510d5d0d81885512100368ce0a0f2c7 100644 (file)
@@ -2558,6 +2558,8 @@ void PG::split_into(pg_t child_pgid, PG *child, unsigned split_bits)
 
   child->on_new_interval();
 
+  child->send_notify = !child->is_primary();
+
   child->dirty_info = true;
   child->dirty_big_info = true;
   dirty_info = true;