4D v14.3INTEGRATE MIRROR LOG FILE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
INTEGRATE MIRROR LOG FILE
INTEGRATE MIRROR LOG FILE
The INTEGRATE MIRROR LOG FILE integrates the log file designated by pathName into a 4D Server database, starting with the operationNum operation (optional). The command accepts to integrate any log file into the database, even if it does not correspond to the the data file. This command is specifically intended for use in the context of a mirror database. Note: Starting with 4D v14, it is possible to use a log file as part of a "mirror" database: the "Use Log File" option can now be checked in the Database Settings of a 4D Server used as a logical mirror, thus allowing the implementation of a series of cascading mirror servers. Unlike the existing INTEGRATE LOG FILE command, at the end of its execution INTEGRATE MIRROR LOG FILE does not replace the current log file with the integrated one: the current log file of the database continues to be used. Accordingly, any changes made during integration are saved in the current log file. In pathName, you pass an absolute or relative path to the database folder. If you pass an empty string in this parameter, a standard open file dialog box appears so that you can specify the file to be integrated. If this dialog box is canceled, no file is integrated and the OK system variable is set to 0. By default, when you omit the operationNum parameter, the command integrates all the operations of the log file. The following diagram (pseudocode) details the integration process depending on the various cases. In the log file to be integrated, X is the number of the first operation and Y is the number of the last one: Case of Note that integration will stop at the first error encountered. In this case, if you want to continue with the integration you will need to use the MSC. If the integration is carried out correctly, the system variable OK is set to 1; otherwise, it is set to 0. |
PROPERTIES
Product: 4D
HISTORY
SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v14 R2) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||