]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: fix sparse-read result code checking logic 7179/head
authorxiexingguo <258156334@qq.com>
Tue, 22 Dec 2015 09:05:06 +0000 (17:05 +0800)
committerLoic Dachary <ldachary@redhat.com>
Mon, 11 Jan 2016 10:15:41 +0000 (11:15 +0100)
commit1ab2b481596ad5296e168bf8027e59d41190176e
tree6e460db8259e8b0d677a3188b5a891c41c724509
parent9708e59a1fc2ae52cfae848ce585751bc9fbe572
ReplicatedPG: fix sparse-read result code checking logic

Move ahead the result code checking logic before we continue to verify the trailing hole, otherwise
the real result of non-hole reading may be overwritten and thus confuse caller.

Fixes: #14151
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit b3aa29e324cf0a96a1f2f5dcf1ba998219457bcd)

Conflicts:
src/osd/ReplicatedPG.cc: trivial resolution
src/osd/ReplicatedPG.cc