Commit 0e14cb55 authored by marko's avatar marko

branches/zip: Document dict_rename_indexes() better.

parent b7d65c8c
...@@ -4811,13 +4811,13 @@ dict_redo_remove_index( ...@@ -4811,13 +4811,13 @@ dict_redo_remove_index(
} }
/************************************************************************** /**************************************************************************
Add the indexes to SYS_INDEX.*/ Add the indexes to SYS_INDEX. */
ulint ulint
dict_rename_indexes( dict_rename_indexes(
/*================*/ /*================*/
trx_t* trx, /* in: transaction */ trx_t* trx, /* in: transaction */
ibool commit_flag) /* in: UNUSED */ ibool commit_flag) /* in: TRUE=commit, FALSE=rollback */
{ {
dict_redo_t* dict_redo; dict_redo_t* dict_redo;
ulint err = DB_SUCCESS; ulint err = DB_SUCCESS;
...@@ -4835,10 +4835,9 @@ dict_rename_indexes( ...@@ -4835,10 +4835,9 @@ dict_rename_indexes(
ut_a(index->table); ut_a(index->table);
ut_a(!ut_dulint_is_zero(index->id)); ut_a(!ut_dulint_is_zero(index->id));
ut_a(index->space == index->table->space); ut_a(index->space == index->table->space);
#ifdef UNIV_DEBUG #if 0
fprintf(stderr, "Renaming index: %s\n", index->name); fprintf(stderr, "Renaming index: %s\n", index->name);
#endif /* UNIV_DEBUG */ #endif
err = row_merge_rename_index(trx, index->table, index); err = row_merge_rename_index(trx, index->table, index);
dict_redo = UT_LIST_GET_NEXT(node, dict_redo); dict_redo = UT_LIST_GET_NEXT(node, dict_redo);
......
...@@ -1174,13 +1174,13 @@ dict_redo_free_list( ...@@ -1174,13 +1174,13 @@ dict_redo_free_list(
/*================*/ /*================*/
trx_t* trx); /* in: free this trx's redo list */ trx_t* trx); /* in: free this trx's redo list */
/************************************************************************** /**************************************************************************
Add the indexes to SYS_INDEX.*/ Add the indexes to SYS_INDEX. */
ulint ulint
dict_rename_indexes( dict_rename_indexes(
/*================*/ /*================*/
trx_t* trx,/* in: transaction */ trx_t* trx, /* in: transaction */
ibool commit_flag); /* in: ignored for now */ ibool commit_flag); /* in: TRUE=commit, FALSE=rollback */
/************************************************************************** /**************************************************************************
Remove the index from the transaction's REDO list.*/ Remove the index from the transaction's REDO list.*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment