From c7d192128bb66d5a673bbcdedbfbd7a87134f248 Mon Sep 17 00:00:00 2001 From: hofmockel Date: Sun, 19 Jan 2014 13:45:02 +0100 Subject: [PATCH] Call it.Prev() without the GIL --- rocksdb/_rocksdb.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocksdb/_rocksdb.pyx b/rocksdb/_rocksdb.pyx index 42fa884..0f37b79 100644 --- a/rocksdb/_rocksdb.pyx +++ b/rocksdb/_rocksdb.pyx @@ -1340,6 +1340,7 @@ cdef class ReversedIterator(object): raise StopIteration() cdef object ret = self.it.get_ob() - self.it.ptr.Prev() + with nogil: + self.it.ptr.Prev() check_status(self.it.ptr.status()) return ret