Commit 4718ddd5 authored by marko's avatar marko

branches/zip: Cosmetic fixes.

row_unlock_for_mysql(): Add a const qualifier to read-only rec_t*.
Use dict_index_is_clust().

CMakeLists.txt: svn propset svn:eol-style native.
parent e6081cf1
...@@ -1461,7 +1461,7 @@ row_unlock_for_mysql( ...@@ -1461,7 +1461,7 @@ row_unlock_for_mysql(
if (prebuilt->new_rec_locks >= 1) { if (prebuilt->new_rec_locks >= 1) {
rec_t* rec; const rec_t* rec;
dict_index_t* index; dict_index_t* index;
dulint rec_trx_id; dulint rec_trx_id;
mtr_t mtr; mtr_t mtr;
...@@ -1492,7 +1492,7 @@ row_unlock_for_mysql( ...@@ -1492,7 +1492,7 @@ row_unlock_for_mysql(
/* If the record has been modified by this /* If the record has been modified by this
transaction, do not unlock it. */ transaction, do not unlock it. */
ut_a(index->type & DICT_CLUSTERED); ut_a(dict_index_is_clust(index));
if (index->trx_id_offset) { if (index->trx_id_offset) {
rec_trx_id = trx_read_trx_id(rec rec_trx_id = trx_read_trx_id(rec
......
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