mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-11-01 03:48:57 +08:00 
			
		
		
		
	mdbx: add audit after nested txn start.
Change-Id: I7601994d24e7d2a5b8e9b113f697e4a14b1d2e6a
This commit is contained in:
		| @@ -7211,6 +7211,10 @@ int mdbx_txn_begin_ex(MDBX_env *env, MDBX_txn *parent, MDBX_txn_flags_t flags, | ||||
|     assert(txn->tw.dirtyroom <= txn->mt_env->me_options.dp_limit); | ||||
|     env->me_txn = txn; | ||||
|     rc = mdbx_cursor_shadow(parent, txn); | ||||
|     if (mdbx_audit_enabled() && mdbx_assert_enabled()) { | ||||
|       txn->mt_signature = MDBX_MT_SIGNATURE; | ||||
|       mdbx_tassert(txn, mdbx_audit_ex(txn, 0, false) == 0); | ||||
|     } | ||||
|     if (unlikely(rc != MDBX_SUCCESS)) | ||||
|       mdbx_txn_end(txn, MDBX_END_FAIL_BEGINCHILD); | ||||
|   } else { /* MDBX_TXN_RDONLY */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user