]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/PyState.cc
update sources to v12.2.1
[ceph.git] / ceph / src / mgr / PyState.cc
index f03929102e4753ccad1c864bbe7c5375748763f0..fb6b831de727aef0a9d443342728ac60de90dd1d 100644 (file)
@@ -58,7 +58,9 @@ public:
     dout(10) << "MonCommandCompletion::finish()" << dendl;
     {
       // Scoped so the Gil is released before calling notify_all()
-      Gil gil(pThreadState);
+      // Create new thread state because this is called via the MonClient
+      // Finisher, not the PyModules finisher.
+      Gil gil(pThreadState, true);
 
       auto set_fn = PyObject_GetAttrString(python_completion, "complete");
       assert(set_fn != nullptr);