浏览代码

Merge branch 'master' of https://github.com/Microsoft/tigertoolbox

pmasl 7 年之前
父节点
当前提交
8bf5ae8e70
共有 1 个文件被更改,包括 37 次插入0 次删除
  1. 37 0
      mssql-server-ha.cu4.patch

+ 37 - 0
mssql-server-ha.cu4.patch

@@ -0,0 +1,37 @@
+--- ag.orig	2018-03-14 10:58:42.360695200 -0700
++++ ag	2018-03-14 10:59:43.194225400 -0700
+@@ -117,12 +117,12 @@ mssql_start() {
+ 		$OCF_SUCCESS)
+ 			# Allow this replica to become a master
+ 			#
+-			crm_master -v 10 -N "$OCF_RESKEY_CRM_meta_on_node"
++			crm_master -v 10 -l reboot
+ 			;;
+ 		$OCF_RUNNING_MASTER)
+ 			# This is already a primary. Set its master score higher than other replicas.
+ 			#
+-			crm_master -v 20 -N "$OCF_RESKEY_CRM_meta_on_node"
++			crm_master -v 20 -l reboot
+ 			;;
+ 	esac
+ 
+@@ -224,16 +224,16 @@ mssql_monitor() {
+ 		$OCF_SUCCESS)
+ 			# Allow this replica to become a master.
+ 			#
+-			crm_master -v 10 -N "$OCF_RESKEY_CRM_meta_on_node"
++			crm_master -v 10 -l reboot
+ 			;;
+ 		$OCF_RUNNING_MASTER)
+ 			# This is a primary. Set its master score higher than other replicas.
+ 			#
+-			crm_master -v 20 -N "$OCF_RESKEY_CRM_meta_on_node"
++			crm_master -v 20 -l reboot
+ 			;;
+ 		*)
+ 			# This replica is not healthy enough to be promoted to a master.
+-			crm_master -v 0 -N "$OCF_RESKEY_CRM_meta_on_node"
++			crm_master -v 0 -l reboot
+ 			;;
+ 	esac
+