]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: Only run complete in read_modify_write if finish provided
authorChristopher Hoffman <choffman@redhat.com>
Mon, 7 Apr 2025 18:39:20 +0000 (18:39 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Wed, 5 Nov 2025 13:59:35 +0000 (13:59 +0000)
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc

index 949a4ff3035e6cea5eb21716f32c59b5317c5dcc..c29f69c7e449dcb9be0749e1cd0548c9bb2b5eec 100644 (file)
@@ -12286,7 +12286,9 @@ int Client::WriteEncMgr::read_modify_write(Context *_iofinish)
   get();
   iofinish = new LambdaContext([this, _iofinish](int r) {
     this->put();
-    _iofinish->complete(r);
+    if(_iofinish) {
+      _iofinish->complete(r);
+    }
   });
 
   if (!denc) {