From 24d8398461592d3bff82851625f21c9531bda8a9 Mon Sep 17 00:00:00 2001
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
Date: Tue, 22 Nov 2016 11:17:15 +0100
Subject: [PATCH] redis: use "CLIENT KILL type normal" to notify clients of
master being demoted
---
heartbeat/redis | 1 +
1 file changed, 1 insertion(+)
diff --git a/heartbeat/redis b/heartbeat/redis
index 1ea0025..296f56a 100755
--- a/heartbeat/redis
+++ b/heartbeat/redis
@@ -466,6 +466,7 @@ function demote() {
ocf_log info "demote: Setting master to '$master_host'"
redis_client slaveof "$master_host" "$master_port"
+ redis_client CLIENT KILL type normal
# Wait forever for the slave to connect to the master and finish the
# sync. Timeout is controlled by Pacemaker "op start timeout=XX".