dumper 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dumper/agent.rb +4 -2
- data/lib/dumper/version.rb +1 -1
- metadata +1 -1
data/lib/dumper/agent.rb
CHANGED
@@ -69,9 +69,11 @@ module Dumper
|
|
69
69
|
if json[:status] == 'ok'
|
70
70
|
# Promoted or demoted?
|
71
71
|
if json[:token]
|
72
|
-
|
72
|
+
log 'promoted to primary' if @token.nil?
|
73
|
+
@token = json[:token]
|
73
74
|
else
|
74
|
-
|
75
|
+
log 'demoted to secondary' if @token
|
76
|
+
@token = nil
|
75
77
|
end
|
76
78
|
|
77
79
|
if json[:job]
|
data/lib/dumper/version.rb
CHANGED