• unknown's avatar
    DictCache.hpp, Ndb.hpp: · 1486a5a7
    unknown authored
      Add new variable m_highest_seen when only peeking at auto_increment NEXTID and not retrieving to cache. Add new method to check tupleId before calling data node
    ndb_restore.result, ndb_restore.test:
      Changed test to use information_schema to check auto_increment
    DictCache.cpp, Ndb.cpp:
      Add new variable m_highest_seen when only peeking at auto_increment NEXTID and not retrieving to cache. Add new method to check tupleId before calling data node. When setting the auto_increment value we'll also read up the new value, this is useful if we use the table the first time in this MySQL Server and haven't yet seen the NEXTID value. The kernel will avoid updating since it already has the value but will also read up the NEXTID value to ensure we don't need to do this any more time.
    ndb_auto_increment.result:
      Updated result file since it was incorrect
    
    
    ndb/include/ndbapi/Ndb.hpp:
      Add new variable m_highest_seen when only peeking at auto_increment NEXTID and not retrieving to cache. Add new method to check tupleId before calling data node
    ndb/src/ndbapi/DictCache.hpp:
      Add new variable m_highest_seen when only peeking at auto_increment NEXTID and not retrieving to cache. Add new method to check tupleId before calling data node
    ndb/src/ndbapi/DictCache.cpp:
      Add new variable m_highest_seen when only peeking at auto_increment NEXTID
      and not retrieving to cache. Add new method to check tupleId before calling
      data node. When setting the auto_increment value we'll also read up the new
      value, this is useful if we use the table the first time in this MySQL Server
      and haven't yet seen the NEXTID value. The kernel will avoid updating since it
      already has the value but will also read up the NEXTID value to ensure we
      don't need to do this any more time.
    ndb/src/ndbapi/Ndb.cpp:
      Add new variable m_highest_seen when only peeking at auto_increment NEXTID
      and not retrieving to cache. Add new method to check tupleId before calling
      data node. When setting the auto_increment value we'll also read up the new
      value, this is useful if we use the table the first time in this MySQL Server
      and haven't yet seen the NEXTID value. The kernel will avoid updating since
      it already has the value but will also read up the NEXTID value to ensure we
      don't need to do this any more time.
    mysql-test/r/ndb_restore.result:
      Changed test to use information_schema to check auto_increment
    mysql-test/t/ndb_restore.test:
      Changed test to use information_schema to check auto_increment
    mysql-test/r/ndb_auto_increment.result:
      Updated result file since it was incorrect
    1486a5a7
ndb_restore.test 12.4 KB