mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Avoid extraneous txn_renew
This commit is contained in:
parent
0fcc88809f
commit
c47136a1f4
2 changed files with 5 additions and 2 deletions
|
|
@ -315,7 +315,7 @@ mdb_reader_flush( MDB_env *env )
|
|||
int
|
||||
mdb_opinfo_get( Operation *op, struct mdb_info *mdb, int rdonly, mdb_op_info **moip )
|
||||
{
|
||||
int rc;
|
||||
int rc, renew = 0;
|
||||
void *data;
|
||||
void *ctx;
|
||||
mdb_op_info *moi = NULL;
|
||||
|
|
@ -407,11 +407,14 @@ mdb_opinfo_get( Operation *op, struct mdb_info *mdb, int rdonly, mdb_op_info **m
|
|||
}
|
||||
} else {
|
||||
moi->moi_txn = data;
|
||||
renew = 1;
|
||||
}
|
||||
moi->moi_flag |= MOI_READER;
|
||||
}
|
||||
if ( moi->moi_ref < 1 ) {
|
||||
moi->moi_ref = 0;
|
||||
}
|
||||
if ( renew ) {
|
||||
mdb_txn_renew( moi->moi_txn );
|
||||
}
|
||||
moi->moi_ref++;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit ee5bdc1105ffd3bbc3344ccea825f4d96be75c17
|
||||
Subproject commit d182ccef046d83adb615e92c2d0b16478809f378
|
||||
Loading…
Reference in a new issue