diff options
author | unknown <heikki@work.mysql.com> | 2002-09-04 18:53:48 +0200 |
---|---|---|
committer | unknown <heikki@work.mysql.com> | 2002-09-04 18:53:48 +0200 |
commit | 2fc75c68bd3f44d1e96c4427b4660a2bfd780526 (patch) | |
tree | ef3cb267c01475b0d1b8c2385ecee59dcd84b7f4 /innobase/dict | |
parent | aeef135aca62d17f458ffae2ccb87d4eb5d66607 (diff) | |
download | mariadb-git-2fc75c68bd3f44d1e96c4427b4660a2bfd780526.tar.gz |
btr0btr.c Add more documentation about B-tree latching
ha_innodb.cc Remove gaps in auto-inc in multi-row inserts, more space for foreign key listings in SHOW TABLE STATUS, move resetting of active_trx to amore logical place
dict0dict.h Remove gaps from auto-inc sequence if errors in multi-row insert
dict0dict.c Remove gaps from auto-inc sequence if errors in multi-row insert
innobase/dict/dict0dict.c:
Remove gaps from auto-inc sequence if errors in multi-row insert
innobase/include/dict0dict.h:
Remove gaps from auto-inc sequence if errors in multi-row insert
sql/ha_innodb.cc:
Remove gaps in auto-inc in multi-row inserts, more space for foreign key listings in SHOW TABLE STATUS, move resetting of active_trx to amore logical place
innobase/btr/btr0btr.c:
Add more documentation about B-tree latching
Diffstat (limited to 'innobase/dict')
-rw-r--r-- | innobase/dict/dict0dict.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/innobase/dict/dict0dict.c b/innobase/dict/dict0dict.c index 85199b90a5a..7bf85557cde 100644 --- a/innobase/dict/dict0dict.c +++ b/innobase/dict/dict0dict.c @@ -308,29 +308,18 @@ dict_table_autoinc_get( } /************************************************************************ -Reads the autoinc counter value, 0 if not yet initialized. Does not -increment the counter. */ +Decrements the autoinc counter value by 1. */ -ib_longlong -dict_table_autoinc_read( -/*====================*/ - /* out: value of the counter */ +void +dict_table_autoinc_decrement( +/*=========================*/ dict_table_t* table) /* in: table */ { - ib_longlong value; - mutex_enter(&(table->autoinc_mutex)); - if (!table->autoinc_inited) { - - value = 0; - } else { - value = table->autoinc; - } + table->autoinc = table->autoinc - 1; mutex_exit(&(table->autoinc_mutex)); - - return(value); } /************************************************************************ |