From: Sage Weil Date: Mon, 8 Jan 2018 22:27:51 +0000 (-0600) Subject: os/bluestore: fix data read error injection in bluestore X-Git-Tag: v13.0.2~581^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F19866%2Fhead;p=ceph.git os/bluestore: fix data read error injection in bluestore Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 7006cc385a50..f12755a55049 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6627,7 +6627,7 @@ int BlueStore::read( } out: - if (r == 0 && _debug_data_eio(oid)) { + if (r >= 0 && _debug_data_eio(oid)) { r = -EIO; derr << __func__ << " " << c->cid << " " << oid << " INJECT EIO" << dendl; } else if (cct->_conf->bluestore_debug_random_read_err &&