New in version 6.1.0: See the new features.
Enable mirror on server for a specific mirror database¶
Enable mirror on server
Note: server can be a server name string or a server IP address. If server is NULL then the current standalone program is afected
KfLib* (DNet, Java and Cpp):
SQL Engine (sql command and ScODBC):
MIRROR ENABLE “table”
The call is based in a normal file that happens to be mirrored due the server configuration.
After enabled, the mirrored files that use the same MirrorDbType, MirrorDbSource and MirrorDbFlags, will be mirrored when opened (does not afect other files currently opened).
The return value is 0 (K_OK) if successful or a keyed file error code otherwise
To enable the mirror on server in localhost server for all files sharing the same mirror as the specified file:
tmp.kfStatus = mirror_enable("localhost", "/server/keyed/file/pathname")