Skip to content
Snippets Groups Projects
Commit e6fe81a1 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#8226 optimization

Don't release read txn unless there has actually been a new write txn
parent 669a4d29
No related branches found
No related tags found
No related merge requests found
......@@ -1124,8 +1124,11 @@ loop_continue:
if ( moi == &opinfo && !wwctx.flag && mdb->mi_rtxn_size ) {
wwctx.nentries++;
if ( wwctx.nentries >= mdb->mi_rtxn_size ) {
MDB_envinfo ei;
wwctx.nentries = 0;
mdb_rtxn_snap( op, &wwctx );
mdb_env_info(mdb->mi_dbenv, &ei);
if ( ei.me_last_txnid > mdb_txn_id( ltid ))
mdb_rtxn_snap( op, &wwctx );
}
}
if ( wwctx.flag ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment