Ends a schema transaction begun with
causes operations to be processed and either committed, or
aborted and rolled back. This method combines transaction
execution and closing; separate methods for these tasks are not
required (or implemented). This method may be called
successfully even if no schema transaction is currently active.
As with many other NDB API methods, it is entirely possible for
endSchemaTrans() to overwrite any current
error code. For this reason, you should first check for and save
any error code that may have resulted from a previous, failed
int endSchemaTrans ( Uint32 flags = 0 )
Parameters. The flags determines how the completed transaction is handled. The default is 0, which causes the transaction to be committed.
SchemaTransAbort(= 1): Causes the transaction to be aborted
SchemaTransBackground(= 2): Causes the transaction to execute in the background; the result is written to the cluster log, while the application continues without waiting for a response.
Returns 0 on success; in the event of an error, returns -1 and
NdbError error code.