]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: respect must_promote in WRITEBACK cache mode 7617/head
authorSage Weil <sage@redhat.com>
Fri, 12 Feb 2016 12:17:26 +0000 (07:17 -0500)
committerSage Weil <sage@redhat.com>
Fri, 12 Feb 2016 12:17:40 +0000 (07:17 -0500)
commit7dbce5bac4945faad761408d5a28adcd5862374c
tree6deb5cbbc465b650bd5f541dc7b474ae16c2cb32
parenta0858a5890eb7c6d2998493a187f820ae103940f
osd/ReplicatedPG: respect must_promote in WRITEBACK cache mode

Force a promotion of the op requires it.  This bug was easily masked
because the defaultish cache parameters would often promote anyway (e.g.,
if min read recency was 0).

This was broken during the refactor in
1a2689f8d74537b105cdcf2933f080a2bee9f190.

Fixes: #14745
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc