⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trx0trx.ic

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 IC
字号:
/******************************************************The transaction(c) 1996 Innobase OyCreated 3/26/1996 Heikki Tuuri*******************************************************//*****************************************************************Starts the transaction if it is not yet started. */UNIV_INLINEvoidtrx_start_if_not_started(/*=====================*/	trx_t*	trx)	/* in: transaction */{		ut_ad(trx->conc_state != TRX_COMMITTED_IN_MEMORY);	if (trx->conc_state == TRX_NOT_STARTED) {		trx_start(trx, ULINT_UNDEFINED);	}}/*****************************************************************Starts the transaction if it is not yet started. Assumes we have reservedthe kernel mutex! */UNIV_INLINEvoidtrx_start_if_not_started_low(/*=========================*/	trx_t*	trx)	/* in: transaction */{		ut_ad(trx->conc_state != TRX_COMMITTED_IN_MEMORY);	if (trx->conc_state == TRX_NOT_STARTED) {		trx_start_low(trx, ULINT_UNDEFINED);	}}/*****************************************************************Resets the new record lock info in a transaction struct. */UNIV_INLINEvoidtrx_reset_new_rec_lock_info(/*========================*/	trx_t*	trx)	/* in: transaction struct */{	trx->new_rec_locks[0] = NULL;	trx->new_rec_locks[1] = NULL;}/*****************************************************************Registers that we have set a new record lock on an index. We only have spaceto store 2 indexes! If this is called to store more than 2 indexes aftertrx_reset_new_rec_lock_info(), then this function does nothing. */UNIV_INLINEvoidtrx_register_new_rec_lock(/*======================*/	trx_t*		trx,	/* in: transaction struct */	dict_index_t*	index)	/* in: trx sets a new record lock on this				index */{	if (trx->new_rec_locks[0] == NULL) {		trx->new_rec_locks[0] = index;		return;	}	if (trx->new_rec_locks[0] == index) {		return;	}	if (trx->new_rec_locks[1] != NULL) {		return;	}	trx->new_rec_locks[1] = index;}/*****************************************************************Checks if trx has set a new record lock on an index. */UNIV_INLINEibooltrx_new_rec_locks_contain(/*======================*/				/* out: TRUE if trx has set a new record lock				on index */	trx_t*		trx,	/* in: transaction struct */	dict_index_t*	index)	/* in: index */{	return(trx->new_rec_locks[0] == index	       || trx->new_rec_locks[1] == index);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -