mysql-partitioner 0.1.4 → 0.1.5

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: 46dec107946e0a38ecd8e3a4e9dff82bbf359452
4
- data.tar.gz: f0a7fa7bee0fa11e911364dcb5b96b5f9837d0f4
3
+ metadata.gz: 9d7077443cae0c759a47c1233649e33ac2adb6cf
4
+ data.tar.gz: d67c50e339181d1409f3b8f7532aef19ab41f0ed
5
5
  SHA512:
6
- metadata.gz: 8249dc0a3087e3c1236346aacefac5f97c328c1f1424a804815ac04996c6d5c4c2cbd6ae95c3a10588e4f654f494caaa12e3af3c0ab6779b3cf4bd785ac54e10
7
- data.tar.gz: 8791e02033920ca13a404efd09dcadce456a88193d12e5ccc079dca604fb2dd1fc88d39bd3bd2d07fb3084badea5c1dc371ce09d1ae863b78826e544670cf838
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)
@@ -1,5 +1,5 @@
1
1
  module Mysql
2
2
  module Partitioner
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
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
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-10-22 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2