From d8891d5add44637c31268a4c4f1b21877e151d32 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 10 Feb 2013 19:52:13 -0800 Subject: [PATCH] os/FileStore: do not tolerate ENOENT on collection_add If we get ENOENT on a collection_add that is a bad thing; do not ignore the error. This was hiding #4071 for some time. Signed-off-by: Sage Weil --- src/os/FileStore.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 44f3b571960ef..bfd9137c99ed3 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -2610,7 +2610,8 @@ unsigned FileStore::_do_transaction(Transaction& t, uint64_t op_seq, int trans_n if (r == -ENOENT && !(op == Transaction::OP_CLONERANGE || op == Transaction::OP_CLONE || - op == Transaction::OP_CLONERANGE2)) + op == Transaction::OP_CLONERANGE2 || + op == Transaction::OP_COLL_ADD)) // -ENOENT is normally okay // ...including on a replayed OP_RMCOLL with !stable_commits ok = true; -- 2.39.5