Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.39 The Undofile Class


The section discusses the Undofile class and its public methods.

Parent class.  NdbDictionary

Child classes.  None

Description.  The Undofile class models an NDB Cluster Disk Data undofile, which stores data used for rolling back transactions.


Currently, only unindexed column data can be stored on disk. Indexes and indexes columns are always stored in memory.

NDB Cluster prior to MySQL 5.1 does not support Disk Data storage, and so does not support undo files; thus the Undofile class is unavailable for NDB API applications written against these older releases.

Methods.  The following table lists the public methods of this class and the purpose or use of each method:

Table 2.85 Undofile class methods and descriptions

Name Description
Undofile() Class constructor
~Undofile() Virtual destructor
getFileNo() Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
getLogfileGroup() Gets the name of the log file group to which the undo file belongs
getLogfileGroupId() Gets the ID of the log file group to which the undo file belongs
getNode() Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
getObjectId() Gets the undo file's object ID
getObjectStatus() Gets the undo file's Status
getObjectVersion() Gets the undo file's object version
getPath() Gets the undo file's file system path
getSize() Gets the size of the undo file
setLogfileGroup() Sets the undo file's log file group using the name of the log file group or a reference to the corresponding LogfileGroup object
setNode() Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
setPath() Sets the file system path for the undo file
setSize() Sets the undo file's size

Types.  The Undofile class defines no public types.

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.