Commit 2c277319 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-30257: _bsddb: Fix newDBObject() (#1428)

Don't set cursorSetReturnsNone to DEFAULT_CURSOR_SET_RETURNS_NONE
anymore if self->myenvobj is set.

Fix a GCC warning on the strange indentation.
parent c991eb28
......@@ -931,11 +931,13 @@ newDBObject(DBEnvObject* arg, int flags)
self->sibling_prev_p_txn=NULL;
self->sibling_next_txn=NULL;
if (self->myenvobj)
if (self->myenvobj) {
self->moduleFlags = self->myenvobj->moduleFlags;
else
}
else {
self->moduleFlags.getReturnsNone = DEFAULT_GET_RETURNS_NONE;
self->moduleFlags.cursorSetReturnsNone = DEFAULT_CURSOR_SET_RETURNS_NONE;
}
MYDB_BEGIN_ALLOW_THREADS;
err = db_create(&self->db, db_env, flags);
......
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