aerospike 1.0.7 → 1.0.8

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: bd28752a0e027fc7dd83f1d37c9c3e0d4f1c41f6
4
- data.tar.gz: 716b795cf8408e206b9e431d2279953881f4e803
3
+ metadata.gz: f3f66f36fdd4739d6a3222cf5cd99f3190ae2c23
4
+ data.tar.gz: 89499baaaa2e0e6ece1d841cead28702904ced4f
5
5
  SHA512:
6
- metadata.gz: c4a311ce2f51860521457ab8a95189cc1e9f374d67e9f4ac6ca737b50c58f1d5a2ad57716bde92ab0cf9444d7d89d0259f19427924a12c2eb9e30297cf201fee
7
- data.tar.gz: 2b9f9e709e15e14846ee131af2273570556cc4a70c8e92e8bbdcf9b3b2a9fe10583872aa7913fb6b5b2bc043c1bc6b454256183058162c985e7626b49d88ed76
6
+ metadata.gz: da82349586ff80ef7f8efbf333def86d304dd549e929db3cf2d13229131c585390f5e9b282b1852b8f85af0fb2202ba2862e95a580753542cceeccfa74614edf
7
+ data.tar.gz: f0fe643fec93d4bc5cabeb48ae0e0a7ef8fc4090bc3ec8324181834c25298c3206f873d542a216368e6f04fe1eaba5357f842404d6d59d7ca92a9c6cd68ffb54
@@ -1,3 +1,13 @@
1
+ ## July 23 2015 (1.0.8)
2
+
3
+ Minor fix release.
4
+
5
+ * **Fixes**:
6
+
7
+ * Fixes an issue in write policy that would use an undefined variable if `:send_key` isn't `nil`.
8
+
9
+ * Fixes an issue in cluster.closed logic.
10
+
1
11
  ## May 15 2015 (1.0.7)
2
12
 
3
13
  Minor fixes.
@@ -82,6 +82,7 @@ require 'aerospike/query/filter'
82
82
  require 'aerospike/query/stream_command'
83
83
  require 'aerospike/query/query_command'
84
84
  require 'aerospike/query/scan_command'
85
+ require 'aerospike/query/statement'
85
86
 
86
87
  module Aerospike
87
88
  extend Loggable
@@ -35,7 +35,7 @@ module Aerospike
35
35
  @cluster_nodes = []
36
36
  @partition_write_map = {}
37
37
  @node_index = Atomic.new(0)
38
- @closed = Atomic.new(false)
38
+ @closed = Atomic.new(true)
39
39
  @mutex = Mutex.new
40
40
 
41
41
  # setup auth info for cluster
@@ -271,6 +271,8 @@ module Aerospike
271
271
  thr.kill if thr.alive?
272
272
  end
273
273
 
274
+ @closed.value = false if @cluster_nodes.length > 0
275
+
274
276
  end
275
277
 
276
278
  def set_partitions(part_map)
@@ -57,7 +57,7 @@ module Aerospike
57
57
 
58
58
  # Send user defined key in addition to hash digest on a record put.
59
59
  # The default is to send the user defined key.
60
- @send_key = opt[:send_key].nil? ? true : send_key
60
+ @send_key = opt[:send_key].nil? ? true : opt[:send_key]
61
61
 
62
62
  self
63
63
  end
@@ -53,6 +53,14 @@ module Aerospike
53
53
  offset
54
54
  end
55
55
 
56
+ #
57
+ # Show the filter as String. This is util to show filters in logs.
58
+ #
59
+ def to_s
60
+ return "#{@name} = #{@begin}" if @begin == @end
61
+ "#{@name} = #{@begin} - #{@end}"
62
+ end
63
+
56
64
  private
57
65
 
58
66
  def initialize(bin_name, begin_value, end_value)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Aerospike
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerospike
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khosrow Afroozeh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack