diff options
author | unknown <heikki@hundin.mysql.fi> | 2004-06-01 19:19:48 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2004-06-01 19:19:48 +0300 |
commit | 3db332ca6b1c65d32c4f70b479dee73d5f3bb7bd (patch) | |
tree | ba225759251ec507a2d569e09548a1429c3f77dc /innobase | |
parent | 80c662479beae3c64ab96faff379b40565fc856a (diff) | |
download | mariadb-git-3db332ca6b1c65d32c4f70b479dee73d5f3bb7bd.tar.gz |
row0mysql.c, row0mysql.h, ha_innodb.cc:
Inside LOCK TABLES, use either LOCK_S or LOCK_X in locking reads; an improvent over the previous patch
sql/ha_innodb.cc:
Inside LOCK TABLES, use either LOCK_S or LOCK_X in locking reads; an improvent over the previous patch
innobase/include/row0mysql.h:
Inside LOCK TABLES, use either LOCK_S or LOCK_X in locking reads; an improvent over the previous patch
innobase/row/row0mysql.c:
Inside LOCK TABLES, use either LOCK_S or LOCK_X in locking reads; an improvent over the previous patch
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/include/row0mysql.h | 3 | ||||
-rw-r--r-- | innobase/row/row0mysql.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/innobase/include/row0mysql.h b/innobase/include/row0mysql.h index a74c5bf4c60..e088071a1c4 100644 --- a/innobase/include/row0mysql.h +++ b/innobase/include/row0mysql.h @@ -507,6 +507,9 @@ struct row_prebuilt_struct { dtuple_t* clust_ref; /* prebuilt dtuple used in sel/upd/del */ ulint select_lock_type;/* LOCK_NONE, LOCK_S, or LOCK_X */ + ulint stored_select_lock_type;/* inside LOCK TABLES, either + LOCK_S or LOCK_X depending on the lock + type */ ulint mysql_row_len; /* length in bytes of a row in the MySQL format */ ulint n_rows_fetched; /* number of rows fetched after diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c index 228f19c865f..4bbe901532c 100644 --- a/innobase/row/row0mysql.c +++ b/innobase/row/row0mysql.c @@ -380,6 +380,7 @@ row_create_prebuilt( prebuilt->clust_pcur = btr_pcur_create_for_mysql(); prebuilt->select_lock_type = LOCK_NONE; + prebuilt->stored_select_lock_type = 99999999; prebuilt->sel_graph = NULL; |