acs::Cluster method current_server_is_canonical_server (public)

 <instance of acs::Cluster[i]> current_server_is_canonical_server

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

Check, if the current server is the canonical_server.

Testcases:
No testcase defined.
Source code:
if { ![info exists :canonicalServer] || ${:canonicalServer} eq "" } {
    ns_log Error "Your configuration is not correct for server clustering."  "Please ensure that you have the CanonicalServer parameter set correctly."
    return 1
}
set result [:is_canonical_server ${:myLocation}]
# set result 0
# foreach location ${:myLocations} {
#     if {[:is_canonical_server $location]} {
#         set result 1
#         break
#     }
# }
#:log "current_server_is_canonical_server $result"
return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: