]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: do watch effects only when change commits
authorSage Weil <sage@redhat.com>
Fri, 21 Nov 2014 23:34:30 +0000 (15:34 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:39:20 +0000 (10:39 -0800)
commit1c6944f79a3f1400525d13c298e569c1471d9b78
tree2cc25707fd37a9f7ce95e9babda4a29be2bc12f3
parent1c5bba670bdd61269769247b7b84ee4fbd98fd1c
osd/ReplicatedPG: do watch effects only when change commits

Do not tell the client their watch succeeded until it is durable and
visible to clients doing a notify.  This is less important in the initial
watch registration stage, but critical in the disconnect (and disconnect
+ reconnect) pipelining cases.

Simplify the watch_disconnects struct to have exactly the information
we need, and no more.  Note that the conn is not needed for disconnects
(and we don't have a req to provide one in the watch timeout op case).

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