]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG::maybe_handle_cache: do not promote before checking full 6193/head
authorSamuel Just <sjust@redhat.com>
Thu, 8 Oct 2015 18:16:33 +0000 (11:16 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 8 Oct 2015 18:23:13 +0000 (11:23 -0700)
commit1a2689f8d74537b105cdcf2933f080a2bee9f190
treed5ed0080b91ab6ca40035e27d74950e24b54fe03
parent4c089ee93f4fd307d4d45493796f53a13dcc4c5b
ReplicatedPG::maybe_handle_cache: do not promote before checking full

Otherwise, ops with need_promote() can order past ops without it
causing an rgw write sequence like:

writefull 0~0
writefull 0~512kb
write 512kb~512kb

to reorder to

writefull 0~0 -- delayed: full
writefull 0~512kb -- delayed: full
write 512kb~512kb -- promote and execute
writefull 0~0 -- execute
writefull 0~512kb -- execute

Fixes: 13240
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc