]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: add the delete-head special case of CEPH_OSD_OP_ROLLBACK 48477/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 13 Oct 2022 11:54:35 +0000 (11:54 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 20 Oct 2022 14:48:54 +0000 (14:48 +0000)
commitc105b4bea33ab7524ca69dc2db3a91c25ba9c197
tree7ee56d90c8fcf2245751bbb15c477b39bee7d633
parent296ba0641a161e6f809a03f39d85faf9d695315b
crimson/osd: add the delete-head special case of CEPH_OSD_OP_ROLLBACK

This allows to pass `TestLibRBD.TestIOToSnapshot`:

```
[rzarzynski@o06 build]$ CRIMSON_COMPAT=true RBD_FEATURES=1 bin/ceph_test_librbd --gtest_filter=TestLibRBD.TestIOToSnapshot
seed 3954016
Note: Google Test filter = TestLibRBD.TestIOToSnapshot
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from TestLibRBD
[ RUN      ] TestLibRBD.TestIOToSnapshot
using new format!
...
opening testimg@orig
read: 80
write to snapshot returned -30
Read-only file system
num snaps is: 2
expected: 2
snap: orig
snap: written
found orig with size 2097152
found written with size 2097152
num snaps is: 1
expected: 1
snap: orig
found orig with size 2097152
num snaps is: 0
expected: 0
[       OK ] TestLibRBD.TestIOToSnapshot (7510 ms)
[----------] 1 test from TestLibRBD (7510 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (8504 ms total)
[  PASSED  ] 1 test.
```

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