sequel-replica-failover 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dba94be5402e5660e5ae3308c9e8e4463195b34
|
4
|
+
data.tar.gz: ac4906af1bde935311bb7c492a24f583f9070092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6d2891b1a22ebbff6f74ced00643ed77648ad9c346f87414ba3e5663e23399a62200338380372f3c605e8120be933e818d7768a074d036b64503fe5a3ecf2bf
|
7
|
+
data.tar.gz: 8782591c54e37e2b1068886bd801b3e8883df2a3d872cfee35aafca4ef5d2e8d81ea12e344dab3f4a4f53c7a1cb6c6af69cc0e9d1e4c6d31c571ce78a0d9841f
|
@@ -50,9 +50,9 @@ class Sequel::ShardedSingleFailoverConnectionPool < Sequel::ShardedSingleConnect
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def stick
|
53
|
-
probe { |p| p.stick }
|
54
|
-
@stuck_at ||= Time.now
|
55
53
|
@stuck_times ||= 0
|
54
|
+
probe(@stuck_times) { |p| p.stick }
|
55
|
+
@stuck_at ||= Time.now
|
56
56
|
@stuck_times += 1
|
57
57
|
end
|
58
58
|
|
@@ -23,6 +23,10 @@ describe Sequel::ReplicaFailover::DTraceProvider do
|
|
23
23
|
it 'has :stick for its name' do
|
24
24
|
expect(provider.stick.name).to eq(:stick)
|
25
25
|
end
|
26
|
+
|
27
|
+
it 'takes an integer argument' do
|
28
|
+
expect(provider.stick.arguments).to eq([:integer])
|
29
|
+
end
|
26
30
|
end
|
27
31
|
|
28
32
|
describe '#unstick' do
|