修复gs_checkperf执行报错的问题
同步server仓om中gs_dropnode相关代码
This commit is contained in:
@ -1436,6 +1436,9 @@ class dbClusterInfo():
|
||||
"node : %u\n" % dbNode.id)
|
||||
outText = outText + (
|
||||
"node_name : %s\n" % dbNode.name)
|
||||
outText = outText + (
|
||||
"instance_id : %u\n" %
|
||||
dnInst.instanceId)
|
||||
outText = outText + ("node_ip : %s\n" %
|
||||
dnInst.listenIps[0])
|
||||
outText = outText + (
|
||||
@ -1443,12 +1446,6 @@ class dbClusterInfo():
|
||||
dnInst.datadir)
|
||||
outText = outText + "type : " \
|
||||
"Datanode\n"
|
||||
outText = outText + (
|
||||
"instance_id : %u\n" %
|
||||
dnInst.instanceId)
|
||||
outText = outText + (
|
||||
"instance_role : %s\n" %
|
||||
dnInst.localRole)
|
||||
outText = outText + (
|
||||
"instance_state : %s\n" %
|
||||
dnInst.state)
|
||||
@ -1456,6 +1453,13 @@ class dbClusterInfo():
|
||||
outText = outText + (
|
||||
"static_connections : %s\n\n" %
|
||||
dnInst.staticConnections)
|
||||
outText = outText + (
|
||||
"HA_state : %s\n" %
|
||||
clusterState)
|
||||
outText = outText + (
|
||||
"instance_role : %s\n" %
|
||||
dnInst.localRole)
|
||||
if dnInst.localRole == "Primary":
|
||||
outText = outText + "------------------------" \
|
||||
"---------------" \
|
||||
"--------------------------------\n\n"
|
||||
|
Reference in New Issue
Block a user