mysql-partitioner 0.1.4 → 0.1.5
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d7077443cae0c759a47c1233649e33ac2adb6cf
|
|
4
|
+
data.tar.gz: d67c50e339181d1409f3b8f7532aef19ab41f0ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7558cc6046efe340faf6f38b25563fa7a92f4e8059a5580e38cf24a439839e07ef0bfa3e3de73edec2313959966724855f9d261e0afeee51e74082194a04efcb
|
|
7
|
+
data.tar.gz: 3e5e3fafa10402f31c6f3f69cc7457acb76d80f08412fc6a00dec97a1f7a6b623f468589d7c694177a171cbacaaf3bf669846e6e659493edf4bd30788d8b0d19
|
|
@@ -57,7 +57,6 @@ module Mysql
|
|
|
57
57
|
|
|
58
58
|
def update_partitions()
|
|
59
59
|
current = @operation.get_current_bounded_partitions
|
|
60
|
-
raise "partition is some how empty" if current.empty?
|
|
61
60
|
empty = find_empty_partitions(current)
|
|
62
61
|
|
|
63
62
|
new = []
|
|
@@ -79,7 +78,6 @@ module Mysql
|
|
|
79
78
|
return current_partitions if max_val.nil?
|
|
80
79
|
max_val = max_val.to_i
|
|
81
80
|
max_active_partition = find_partition(current_partitions, max_val)
|
|
82
|
-
raise "partition not found error" if max_active_partition.nil?
|
|
83
81
|
|
|
84
82
|
current_partitions.select{|item|
|
|
85
83
|
item.less_than > max_val && item != max_active_partition
|
|
@@ -93,7 +91,6 @@ module Mysql
|
|
|
93
91
|
max_val = max_val.to_i
|
|
94
92
|
|
|
95
93
|
max_active_partition = find_partition(current_partitions, max_val)
|
|
96
|
-
raise "partition not found errorr" if max_active_partition.nil?
|
|
97
94
|
|
|
98
95
|
old_index = current_partitions.rindex{|item|
|
|
99
96
|
time = @operation.of_max_val(@key, @time_key, item.name)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mysql-partitioner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- maedama
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mysql2
|