]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: reply to notify request with our unique notify_id
authorSage Weil <sage@redhat.com>
Thu, 1 Oct 2015 18:50:00 +0000 (14:50 -0400)
committerSage Weil <sage@redhat.com>
Thu, 1 Oct 2015 18:50:00 +0000 (14:50 -0400)
commit049ea702b9bf4a8a62ae2770d9ba55c0730b3eef
treef115e55e3a069d1340e77e4ffd6ee52121e1c22a
parent99651f0eac8fca5271f6957b38cebcc6e2d8ca8a
osd: reply to notify request with our unique notify_id

The OSD assigns a unique ID to each notify it queues for
processing.  Include this in the reply to the notifier so that
they can match it up with the eventual completions they receive.

This is necessary to distinguish between multiple completions
they may receive if there is PG peering and the notify is resent.
In particular, an earlier notify may return an error when a later
attempt succeeds.

This is forwards and backwards compatible: new clients will make use of
this reply payload but older clients ignore it.

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