Package: swift / 2.26.0-10+deb11u1

fix-eventlet-monkey-patching-with-py3.7.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix eventlet monkey patching with Python >= 3.7
 This is inspired from:
  https://github.com/openstack/nova/commit/2078ef850c93b47ec1bcd044450b589d7a8fc0b5
 Let's see if this fixes it...
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2020-10-29

Index: swift/swift/common/utils.py
===================================================================
--- swift.orig/swift/common/utils.py
+++ swift/swift/common/utils.py
@@ -554,6 +554,9 @@ def eventlet_monkey_patch():
     #         if thread is monkey-patched.
     eventlet.patcher.monkey_patch(all=False, socket=True, select=True,
                                   thread=True)
+    import __original_module_threading as orig_threading
+    import threading
+    orig_threading.current_thread.__globals__['_active'] = threading._active
 
 
 def noop_libc_function(*args):