From 619d26de6fe8eb9ec2f2e4e046be690d95ab40ce Mon Sep 17 00:00:00 2001 From: Don Anderson Date: Thu, 8 Jan 2015 19:14:33 -0500 Subject: [PATCH] Release Python's global lock (GIL) before sleeping to allow other threads to grab the lock as needed. --- lang/python/wiredtiger.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/python/wiredtiger.i b/lang/python/wiredtiger.i index 974118d0f61..8eb1c59ee1e 100644 --- a/lang/python/wiredtiger.i +++ b/lang/python/wiredtiger.i @@ -339,7 +339,9 @@ retry: if (result != 0 && result != EBUSY) SWIG_ERROR_IF_NOT_SET(result); else if (result == EBUSY) { + SWIG_PYTHON_THREAD_BEGIN_ALLOW; __wt_sleep(0, 10000); + SWIG_PYTHON_THREAD_END_ALLOW; goto retry; } }