]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_coroutine.cc
import ceph 14.2.5
[ceph.git] / ceph / src / rgw / rgw_coroutine.cc
index 4ef9a6ac94e2233a7b2eea0a0dd602efbd9779d4..1ccefc2daba54b827400e63ce0e0f5d951159a6f 100644 (file)
@@ -874,7 +874,12 @@ void RGWCoroutinesManagerRegistry::dump(Formatter *f) const {
 
 void RGWCoroutine::call(RGWCoroutine *op)
 {
-  stack->call(op);
+  if (op) {
+    stack->call(op);
+  } else {
+    // the call()er expects this to set a retcode
+    retcode = 0;
+  }
 }
 
 RGWCoroutinesStack *RGWCoroutine::spawn(RGWCoroutine *op, bool wait)