📄 dict0boot.ic
字号:
/******************************************************Data dictionary creation and booting(c) 1996 Innobase OyCreated 4/18/1996 Heikki Tuuri*******************************************************//**************************************************************************Writes the current value of the row id counter to the dictionary header filepage. */voiddict_hdr_flush_row_id(void);/*=======================*//**************************************************************************Returns a new row id. */UNIV_INLINEdulintdict_sys_get_new_row_id(void)/*=========================*/ /* out: the new id */{ dulint id; mutex_enter(&(dict_sys->mutex)); id = dict_sys->row_id; if (0 == (ut_dulint_get_low(id) % DICT_HDR_ROW_ID_WRITE_MARGIN)) { dict_hdr_flush_row_id(); } UT_DULINT_INC(dict_sys->row_id); mutex_exit(&(dict_sys->mutex)); return(id);} /**************************************************************************Reads a row id from a record or other 6-byte stored form. */UNIV_INLINEdulintdict_sys_read_row_id(/*=================*/ /* out: row id */ byte* field) /* in: record field */{ ut_ad(DATA_ROW_ID_LEN == 6); return(mach_read_from_6(field));} /**************************************************************************Writes a row id to a record or other 6-byte stored form. */UNIV_INLINEvoiddict_sys_write_row_id(/*==================*/ byte* field, /* in: record field */ dulint row_id) /* in: row id */{ ut_ad(DATA_ROW_ID_LEN == 6); mach_write_to_6(field, row_id);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -