New in version 6.1.0: See the new features.

Disable mirror on server for a specific mirror database

mirror_disable()

Disable mirror on server


SYNTAX

  • sage/srep:

    mirror_disable(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.mirrorDisable(filename)


  • SQL Engine (sql command and ScODBC):

    MIRROR DISABLE “table”


Functionality

  • The call is based in a normal file that happens to be mirrored due the server configuration.

  • After disabled, the mirrored files that use the same MirrorDbType, MirrorDbSource and MirrorDbFlags, won’t 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 disable the mirror on server in localhost server for all files sharing the same mirror as the specified file:

tmp.kfStatus = mirror_disable("localhost", "/server/keyed/file/pathname")

RELATED TOPICS

Mirror on server service

Mirror on server functions

Mirror on server commands