distributed_mutex 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mysql_mutex.rb +23 -23
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
data/lib/mysql_mutex.rb
CHANGED
@@ -84,26 +84,26 @@ class MySQLMutex < DistributedMutex
|
|
84
84
|
|
85
85
|
end
|
86
86
|
|
87
|
-
at_exit do
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
end
|
87
|
+
# at_exit do
|
88
|
+
# rails_logger = defined?(Rails) && Rails.respond_to?(:logger) && Rails.logger
|
89
|
+
# begin
|
90
|
+
# locks = MySQLMutex.active_locks
|
91
|
+
# locks.delete_if do |k, v|
|
92
|
+
# v.empty?
|
93
|
+
# end
|
94
|
+
#
|
95
|
+
# if locks.size > 0
|
96
|
+
# if rails_logger
|
97
|
+
# rails_logger.error("MySQLMutex: Locks still active! - #{locks.inspect}")
|
98
|
+
# else
|
99
|
+
# STDERR.puts("MySQLMutex: Locks still active! - #{locks.inspect}")
|
100
|
+
# end
|
101
|
+
# end
|
102
|
+
# rescue => err
|
103
|
+
# if rails_logger
|
104
|
+
# rails_logger.error("MySQLMutex: #{err.message}")
|
105
|
+
# else
|
106
|
+
# STDERR.puts("MySQLMutex: #{err.message}")
|
107
|
+
# end
|
108
|
+
# end
|
109
|
+
# end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: distributed_mutex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 3
|
10
|
+
version: 1.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Birkir A. Barkarson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-11-
|
18
|
+
date: 2011-11-17 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|