浏览代码

Send cluster mode via startup command

Mark Mine 23 年之前
父节点
当前提交
daf0153c6c
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      direct/src/cluster/ClusterClient.py
  2. 1 0
      direct/src/cluster/ClusterMsgs.py

+ 2 - 2
direct/src/cluster/ClusterClient.py

@@ -39,10 +39,10 @@ class ClusterClient(DirectObject.DirectObject):
             self.daemon.tellServer(serverConfig.serverName,
                                    clusterDaemonPort,
                                    serverCommand)
-        print 'blah'
+        print 'Begin waitForServers'
         if not self.daemon.waitForServers(len(configList)):
             print 'Cluster Client, no response from servers'
-        print 'post blah'
+        print 'End waitForServers'
         self.qcm=QueuedConnectionManager()
         self.serverList = []
         self.msgHandler = ClusterMsgHandler(ClusterClient.MGR_NUM, self.notify)

+ 1 - 0
direct/src/cluster/ClusterMsgs.py

@@ -26,6 +26,7 @@ CLUSTER_DAEMON_PORT = 8001
 SERVER_STARTUP_STRING = (
     '!bash ppython -c ' + 
     '"import __builtin__; ' +
+    '__builtin__.clusterMode = \'server\';' +
     '__builtin__.clusterServerPort = %s;' +
     '__builtin__.clusterSyncFlag = %d;' +
     '__builtin__.clusterDaemonClient = \'%s\';' +