ad_canonical_server_p (private)

 ad_canonical_server_p

Defined in packages/acs-tcl/tcl/server-cluster-procs.tcl

Returns true if this is the primary (called historically "canonical") server, false otherwise. This function is e.g. used to determine, whether scheduled procedures are run on the current node.

Returns:
boolean value

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_schedule_proc ad_schedule_proc (test acs-tcl) ad_canonical_server_p ad_canonical_server_p test_ad_schedule_proc->ad_canonical_server_p server_cluster_enabled_p server_cluster_enabled_p (public) ad_canonical_server_p->server_cluster_enabled_p ad_schedule_proc ad_schedule_proc (public) ad_schedule_proc->ad_canonical_server_p

Testcases:
ad_schedule_proc
Source code:
    if {[server_cluster_enabled_p]} {
        return [::acs::cluster current_server_is_canonical_server]
    } else {
        error "ad_canonical_server_p is called, but the cluster is not enabled"
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: