New in version 6.1.0: See the new features.

Enable mirror on server for a specific mirror database

mirror_enable()

Enable mirror on server


SYNTAX

  • sage/srep:

    mirror_enable(server, “filename”)

    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):

    Server.mirrorEnable(filename)


  • SQL Engine (sql command and ScODBC):

    MIRROR ENABLE “table”


Functionality

  • 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


EXAMPLE

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")

RELATED TOPICS

Mirror on server service

Mirror on server functions

Mirror on server commands