]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: fix no ENOENT when removing already removed object 45302/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 8 Mar 2022 17:25:29 +0000 (17:25 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 8 Mar 2022 18:27:27 +0000 (18:27 +0000)
commit66fa95f318455057c280c028f097bbcd82d00e83
treee434a3c6db4f03d9a4eb43364bafba49e6054cea
parent922211851ebd3d093501a4ce2fc9f3178c58054d
crimson/osd: fix no ENOENT when removing already removed object

This patch deals with the following problem:

```
[rzarzynski@o06 build]$ RBD_FEATURES="21" ./bin/ceph_test_cls_rbd --gtest_filter=TestClsRbd.create
Running main() from gmock_main.cc
Note: Google Test filter = TestClsRbd.create
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestClsRbd
[ RUN      ] TestClsRbd.create
../src/test/cls_rbd/test_cls_rbd.cc:467: Failure
Expected equality of these values:
  -2
  ioctx.remove(oid)
    Which is: 0
[  FAILED  ] TestClsRbd.create (10 ms)
[----------] 1 test from TestClsRbd (10 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (2805 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestClsRbd.create

 1 FAILED TEST
```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/pg_backend.cc
src/crimson/osd/pg_backend.h