]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cyan_store: map -ENOENT to 0 for _remove
authorSamuel Just <sjust@redhat.com>
Thu, 30 May 2019 16:50:45 +0000 (09:50 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 31 May 2019 21:05:45 +0000 (14:05 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/cyan_store.cc

index 397770d80eb177111f2e8e98c867dd2a0b0c62fd..93770897b1c84b8f75bd16fd67ef8f1a0e1c1a22 100644 (file)
@@ -272,6 +272,9 @@ seastar::future<> CyanStore::do_transaction(CollectionRef ch,
        coll_t cid = i.get_cid(op->cid);
        ghobject_t oid = i.get_oid(op->oid);
        r = _remove(cid, oid);
+       if (r == -ENOENT) {
+         r = 0;
+       }
       }
       break;
       case Transaction::OP_TOUCH: