]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: fix whiteouts for other cache mode
authorSage Weil <sage@inktank.com>
Tue, 6 May 2014 18:01:27 +0000 (11:01 -0700)
committerSage Weil <sage@inktank.com>
Wed, 7 May 2014 21:01:02 +0000 (14:01 -0700)
commitef35448e63916102261ff6198f2c0ab4e4a57e9b
treed5e214769490702b878530de00c12f4b4b113be9
parente7df73dd7aaf5a0b1171f73d6695d26cd25b7b35
osd/ReplicatedPG: fix whiteouts for other cache mode

We were special casing WRITEBACK mode for handling whiteouts; this needs to
also include the FORWARD and READONLY modes.  To avoid having to list
specific cache modes, though, just check != NONE.

Fixes: #8296
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 3e387d62ed95898db8a7d7163c2bacc363b8f617)
src/osd/ReplicatedPG.cc