]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/test: allow EBUSY when TierFlushOp
authormyoungwon oh <ohmyoungwon@gmail.com>
Tue, 9 Feb 2021 06:44:50 +0000 (15:44 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 29 Mar 2021 08:12:10 +0000 (17:12 +0900)
If the snapshot is not oldest, EBUSY can be returned

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/test/osd/RadosModel.h

index 7bf598d1d842faa66408895f66902f031e88cce3..1bec8d280856cf4fa568f7ae9e57203358709662 100644 (file)
@@ -2814,6 +2814,8 @@ public:
     cout << num << ":  got " << cpp_strerror(r) << std::endl;
     if (r == 0) {
       // sucess
+    } else if (r == -EBUSY) {
+      // could fail if snap is not oldest
     } else {
       ceph_abort_msg("shouldn't happen");
     }