zeevex_cluster 0.3.5 → 0.3.6
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.
- checksums.yaml +8 -8
- data/lib/zeevex_cluster/coordinator/mysql.rb +7 -2
- data/lib/zeevex_cluster/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2FhMzQyYzhlMjdhMzZhNmMxYTU4M2MwZDcyNDgzYzljZGQ4Yjk1Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWQxZjQ1ODMyNjBjMTFhNTdkMzU5MGVmYmQ5MmNmZGRjNzk0ZWM3YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmY0ZGNlMGY2YTQyNTY5ZDlkMDY2MTBjMzI2MTEwOWJkYjYxMmM4YmRiZDMz
|
10
|
+
M2RmMWZhMjZkYmI0MGMzYmFmMmE2MGFiYWI4NWE2NmI2OTAzODlhMzE3NmM5
|
11
|
+
NDVmMGI1OGIwYmM4NzBkYTRlZjBlMjc1ZDYwNDhjNzczMWZlNWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmE2NTIxNzdiYzgxYzg2NzJjZGExODJhNGE3NmY0YmI4ZTI5YjY2NmE2MzVj
|
14
|
+
Zjk4OThlYjk1ODg1M2Y4NTc3ZTJmNjE0NGI4YjViYjIwMjUyMzdjOTM3N2Ni
|
15
|
+
ZDBjZWQ1YjQ2N2ZhOTcwOWYyZDBlNTU0NGU0ZjA1N2MyNWI2MGI=
|
@@ -248,10 +248,15 @@ module ZeevexCluster::Coordinator
|
|
248
248
|
|
249
249
|
# see http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html for WTF affected_rows
|
250
250
|
# overloading
|
251
|
-
|
251
|
+
#
|
252
|
+
# See bug http://bugs.mysql.com/bug.php?id=46675 for case when the affected_rows can be 3.
|
253
|
+
# this appears to be the case in mysql server 5.1 when doing an update on the matched row.
|
254
|
+
# so we just treat 3 the same as 2.
|
255
|
+
|
256
|
+
res[:success] = [1,2,3].include?(res[:affected_rows])
|
252
257
|
res[:upsert_type] = case res[:affected_rows]
|
253
258
|
when 1 then :insert
|
254
|
-
when 2 then :update
|
259
|
+
when 2,3 then :update
|
255
260
|
else :none
|
256
261
|
end
|
257
262
|
res
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zeevex_cluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Sanders
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: state_machine
|