diff options
author | unknown <mskold/marty@mysql.com/linux.site> | 2007-05-09 17:09:06 +0200 |
---|---|---|
committer | unknown <mskold/marty@mysql.com/linux.site> | 2007-05-09 17:09:06 +0200 |
commit | b1f3d4feaa2b94ff0e720ba2d46b2e2401dcd0fa (patch) | |
tree | cadadc6fba8cd76efbcb798ac699480379972f9c /sql/ha_ndbcluster.cc | |
parent | f34f781e5fb1be05afcfc1fe2e2db51068b7288e (diff) | |
download | mariadb-git-b1f3d4feaa2b94ff0e720ba2d46b2e2401dcd0fa.tar.gz |
Ndb.hpp, Ndb.cpp, ha_ndbcluster.cc:
Bug#26342 auto_increment_increment AND auto_increment_offset REALLY REALLY anger NDB cluster, implemented support for auto_increment_offset and auto_increment
sql/ha_ndbcluster.cc:
Bug#26342 auto_increment_increment AND auto_increment_offset REALLY REALLY anger NDB cluster, implemented support for auto_increment_offset and auto_increment
storage/ndb/include/ndbapi/Ndb.hpp:
Bug#26342 auto_increment_increment AND auto_increment_offset REALLY REALLY anger NDB cluster, implemented support for auto_increment_offset and auto_increment
storage/ndb/src/ndbapi/Ndb.cpp:
Bug#26342 auto_increment_increment AND auto_increment_offset REALLY REALLY anger NDB cluster, implemented support for auto_increment_offset and auto_increment
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index be0571de02a..da63ca8361f 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -6056,7 +6056,7 @@ void ha_ndbcluster::get_auto_increment(ulonglong offset, ulonglong increment, ulonglong nb_desired_values, ulonglong *first_value, ulonglong *nb_reserved_values) -{ +{ int cache_size; Uint64 auto_value; DBUG_ENTER("get_auto_increment"); @@ -6080,7 +6080,8 @@ void ha_ndbcluster::get_auto_increment(ulonglong offset, ulonglong increment, ret= m_skip_auto_increment ? ndb->readAutoIncrementValue(m_table, g.range, auto_value) : - ndb->getAutoIncrementValue(m_table, g.range, auto_value, cache_size); + ndb->getAutoIncrementValue(m_table, g.range, + auto_value, cache_size, increment, offset); } while (ret == -1 && --retries && ndb->getNdbError().status == NdbError::TemporaryError); |