Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.4.40 Dictionary::prepareHashMap()

Description.  Creates or retrieves a hash map suitable for alteration. Requires a schema transaction to be in progress; see Section 2.3.4.2, “Dictionary::beginSchemaTrans()”, for more information.

Added in NDB 7.2.7.

Signature. 

int prepareHashMap
    (
      const Table& oldTable,
      Table& newTable
    )

or

int prepareHashMap
    (
      const Table& oldTable,
      Table& newTable,
      Uint32 buckets
    )

Parameters.  References to the old and new tables. Optionally, a number of buckets.

Return value.  Returns 0 on success; on failure, returns -1 and sets an error.


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.