summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-08-05 13:29:37 -0400
committerSusan LoVerso <sue@wiredtiger.com>2014-08-05 13:29:37 -0400
commitbc5d09e010e5a86bb1e80b6b3f3b97137c83bdda (patch)
tree80e1dc7db3fa3232e4e444a313dfb97e4fb20139 /lang/python
parent42d243bd9c3880459fb27452acb9a28e47a58abe (diff)
downloadmongo-bc5d09e010e5a86bb1e80b6b3f3b97137c83bdda.tar.gz
Document EBUSY and update python. #1153
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/wiredtiger.i10
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/python/wiredtiger.i b/lang/python/wiredtiger.i
index 42472c08960..0c228c56e5f 100644
--- a/lang/python/wiredtiger.i
+++ b/lang/python/wiredtiger.i
@@ -330,14 +330,14 @@ do {
SWIG_ERROR_IF_NOT_SET(result);
}
-/* Async operations can return ENOMEM when no ops are available. */
-%define ENOMEM_OK(m)
+/* Async operations can return EBUSY when no ops are available. */
+%define EBUSY_OK(m)
%exception m {
retry:
$action
- if (result != 0 && result != ENOMEM)
+ if (result != 0 && result != EBUSY)
SWIG_ERROR_IF_NOT_SET(result);
- else if (result == ENOMEM) {
+ else if (result == EBUSY) {
__wt_sleep(0, 10000);
goto retry;
}
@@ -369,7 +369,7 @@ retry:
}
%enddef
-ENOMEM_OK(__wt_connection::async_new_op)
+EBUSY_OK(__wt_connection::async_new_op)
ENUM_OK(__wt_async_op::get_type)
NOTFOUND_OK(__wt_cursor::next)
NOTFOUND_OK(__wt_cursor::prev)