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.
This commit is contained in:
parent
c991eb280e
commit
2c27731901
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue