Kaydet (Commit) e70be5cb authored tarafından Gregory P. Smith's avatar Gregory P. Smith

Stab in the dark attempt to fix the test_bsddb3 failure on sparc and S-390

ubuntu buildbots.
üst 556b43d9
......@@ -4903,14 +4903,20 @@ DBSequence_get_key(DBSequenceObject* self, PyObject* args)
{
int err;
DBT key;
PyObject *retval;
key.flags = DB_DBT_MALLOC;
CHECK_SEQUENCE_NOT_CLOSED(self)
MYDB_BEGIN_ALLOW_THREADS
err = self->sequence->get_key(self->sequence, &key);
MYDB_END_ALLOW_THREADS
if (!err)
retval = PyString_FromStringAndSize(key.data, key.size);
FREE_DBT(key);
RETURN_IF_ERR();
return PyString_FromStringAndSize(key.data, key.size);
return retval;
}
static PyObject*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment