From: Sage Weil Date: Wed, 23 Nov 2016 00:54:19 +0000 (-0600) Subject: os/filestore: blacklist same ENOENT failures as bluestore X-Git-Tag: v11.1.0~136^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=28c73c602f1a6cd392f889c50d7d9f62e378f240;p=ceph.git os/filestore: blacklist same ENOENT failures as bluestore FileStore doesn't care per se, but they indicate buggy calling code, and we want to catch all bad callers! Signed-off-by: Sage Weil --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index d3f632192b5b..f2be630f711b 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -2942,7 +2942,14 @@ void FileStore::_do_transaction( if (r == -ENOENT && !(op->op == Transaction::OP_CLONERANGE || op->op == Transaction::OP_CLONE || op->op == Transaction::OP_CLONERANGE2 || - op->op == Transaction::OP_COLL_ADD)) + op->op == Transaction::OP_COLL_ADD || + op->op == Transaction::OP_SETATTR || + op->op == Transaction::OP_SETATTRS || + op->op == Transaction::OP_RMATTR || + op->op == Transaction::OP_OMAP_SETKEYS || + op->op == Transaction::OP_OMAP_RMKEYS || + op->op == Transaction::OP_OMAP_RMKEYRANGE || + op->op == Transaction::OP_OMAP_SETHEADER)) // -ENOENT is normally okay // ...including on a replayed OP_RMCOLL with checkpoint mode ok = true;