emissary 1.3.12 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/lib/emissary/agent/mysql.rb +4 -3
- metadata +3 -3
data/VERSION.yml
CHANGED
data/lib/emissary/agent/mysql.rb
CHANGED
|
@@ -120,6 +120,7 @@ module Emissary
|
|
|
120
120
|
@connection.ping() unless @connection.nil?
|
|
121
121
|
rescue ::Mysql::Error => e
|
|
122
122
|
if e.message =~ /server has gone away/
|
|
123
|
+
::Emissary.logger.notice "Agent::MySQL: MySQL server went away - reconnecting..."
|
|
123
124
|
@connection = nil
|
|
124
125
|
else
|
|
125
126
|
raise e
|
|
@@ -131,7 +132,7 @@ module Emissary
|
|
|
131
132
|
|
|
132
133
|
def disconnect
|
|
133
134
|
unless not connected?
|
|
134
|
-
|
|
135
|
+
::Emissary.logger.notice "Agent::MySQL: disconnecting from MySQL Server .."
|
|
135
136
|
@connection.close
|
|
136
137
|
@connection = nil
|
|
137
138
|
end
|
|
@@ -202,13 +203,13 @@ module Emissary
|
|
|
202
203
|
|
|
203
204
|
def spawn_lockwatch_thread!
|
|
204
205
|
if @watcher.is_a?(Thread) and not @watcher.alive?
|
|
205
|
-
|
|
206
|
+
::Emissary.logger.notice "Agent::MySQL: Watcher is dead - restarting..."
|
|
206
207
|
@watcher = nil
|
|
207
208
|
end
|
|
208
209
|
|
|
209
210
|
@watcher ||= Thread.new {
|
|
210
211
|
begin
|
|
211
|
-
|
|
212
|
+
::Emissary.logger.debug "Agent::MySQL: Entering Watcher Loop"
|
|
212
213
|
Timeout.timeout(@timeout) do
|
|
213
214
|
loop { break unless locked? }
|
|
214
215
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: emissary
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 1.3.
|
|
9
|
+
- 13
|
|
10
|
+
version: 1.3.13
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Carl P. Corliss
|