aerospike 2.1.0 → 2.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: 291a0bd794307c4287931048cacb5588fa0cf963
|
4
|
+
data.tar.gz: d91a674c710b1cc49dde762261d65de3aa58e675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 825242c46dc27ee6fe674387c639e9968978d4509c2a27f82f8d3a49102674525a9ca293c488621f2df3bff8ec2cd2fea1074582761acb48b05c90f82c254d8c
|
7
|
+
data.tar.gz: 05636b87e30ed3087f2efd5f5af92399b8ee9bdba7b9360b03599e3d4b275283319642d5e9bea410fce7b9e77550c2b2659f452c8991d0ea24b4896f1e9a4420
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
v2.1.1 / 2016-08-16
|
2
|
+
===================
|
3
|
+
|
4
|
+
* **Bug Fixes**
|
5
|
+
* Fix incorrect expiration times on records fetched via batch_get or query operations. [#38](https://github.com/aerospike/aerospike-client-ruby/issues/38)
|
6
|
+
|
7
|
+
* **Improvements**
|
8
|
+
* Add support for two new server error codes (23 & 24) introduced in Aerospike Server v3.9.1.
|
9
|
+
* Records returned by batch_get operation should include the full key incl. the user key part.
|
10
|
+
|
1
11
|
v2.1.0 / 2016-07-19
|
2
12
|
===================
|
3
13
|
|
@@ -7,7 +17,7 @@ v2.1.0 / 2016-07-19
|
|
7
17
|
|
8
18
|
* **Improvements**
|
9
19
|
* Support for queries on Lists and Maps (keys & values)
|
10
|
-
* Support for creating indexes on Lists and Maps
|
20
|
+
* Support for creating indexes on Lists and Maps [CLIENT-685]
|
11
21
|
* Support GeoJSON values in Lists and Maps
|
12
22
|
|
13
23
|
v2.0.0 / 2016-05-27
|
@@ -58,17 +58,17 @@ module Aerospike
|
|
58
58
|
# If cmd is the end marker of the response, do not proceed further
|
59
59
|
return false if (info3 & INFO3_LAST) == INFO3_LAST
|
60
60
|
|
61
|
-
generation = @data_buffer.read_int32(6)
|
62
|
-
expiration = @data_buffer.read_int32(10)
|
63
|
-
field_count = @data_buffer.read_int16(18)
|
64
|
-
op_count = @data_buffer.read_int16(20)
|
61
|
+
generation = @data_buffer.read_int32(6)
|
62
|
+
expiration = Aerospike.TTL(@data_buffer.read_int32(10))
|
63
|
+
field_count = @data_buffer.read_int16(18)
|
64
|
+
op_count = @data_buffer.read_int16(20)
|
65
65
|
key = parse_key(field_count)
|
66
66
|
item = @key_map[key.digest]
|
67
67
|
|
68
68
|
if item
|
69
69
|
if result_code == 0
|
70
70
|
index = item.index
|
71
|
-
@records[index] = parse_record(key, op_count, generation, expiration)
|
71
|
+
@records[index] = parse_record(item.key, op_count, generation, expiration)
|
72
72
|
end
|
73
73
|
else
|
74
74
|
Aerospike.logger.debug("Unexpected batch key returned: #{key.namespace}, #{key.digest}")
|
@@ -31,7 +31,7 @@ module Aerospike
|
|
31
31
|
keys.each_with_index do |key, i|
|
32
32
|
item = key_map[key.digest]
|
33
33
|
unless item
|
34
|
-
item = BatchItem.new(i)
|
34
|
+
item = BatchItem.new(key, i)
|
35
35
|
key_map[key.digest] = item
|
36
36
|
else
|
37
37
|
item.add_duplicate(i)
|
@@ -42,7 +42,8 @@ module Aerospike
|
|
42
42
|
end
|
43
43
|
|
44
44
|
|
45
|
-
def initialize(index)
|
45
|
+
def initialize(key, index)
|
46
|
+
@key = key
|
46
47
|
@index = index
|
47
48
|
end
|
48
49
|
|
@@ -64,6 +65,10 @@ module Aerospike
|
|
64
65
|
return r
|
65
66
|
end
|
66
67
|
|
68
|
+
def key
|
69
|
+
@key
|
70
|
+
end
|
71
|
+
|
67
72
|
end # class
|
68
73
|
|
69
74
|
end # module
|
@@ -53,7 +53,7 @@ module Aerospike
|
|
53
53
|
return false if (info3 & INFO3_LAST) == INFO3_LAST
|
54
54
|
|
55
55
|
generation = @data_buffer.read_int32(6)
|
56
|
-
expiration = @data_buffer.read_int32(10)
|
56
|
+
expiration = Aerospike.TTL(@data_buffer.read_int32(10))
|
57
57
|
field_count = @data_buffer.read_int16(18)
|
58
58
|
op_count = @data_buffer.read_int16(20)
|
59
59
|
key = parse_key(field_count)
|
@@ -114,6 +114,12 @@ module Aerospike
|
|
114
114
|
# Operation not allowed at this time.
|
115
115
|
FAIL_FORBIDDEN = 22
|
116
116
|
|
117
|
+
# Returned by Map put and put_items operations when policy is REPLACE but key was not found
|
118
|
+
ELEMENT_NOT_FOUND = 23
|
119
|
+
|
120
|
+
# Returned by Map put and put_items operations when policy is CREATE_ONLY but key already exists
|
121
|
+
ELEMENT_EXISTS = 24
|
122
|
+
|
117
123
|
# There are no more records left for query.
|
118
124
|
QUERY_END = 50
|
119
125
|
|
@@ -129,11 +135,9 @@ module Aerospike
|
|
129
135
|
|
130
136
|
ILLEGAL_STATE = 56
|
131
137
|
|
132
|
-
|
133
138
|
# User name is invalid.
|
134
139
|
INVALID_USER = 60
|
135
140
|
|
136
|
-
|
137
141
|
# User was previously created.
|
138
142
|
USER_ALREADY_EXISTS = 61
|
139
143
|
|
@@ -292,6 +296,12 @@ module Aerospike
|
|
292
296
|
when FAIL_FORBIDDEN
|
293
297
|
"Operation not allowed at this time"
|
294
298
|
|
299
|
+
when ELEMENT_NOT_FOUND
|
300
|
+
"Element not found"
|
301
|
+
|
302
|
+
when ELEMENT_EXISTS
|
303
|
+
"Element already exists"
|
304
|
+
|
295
305
|
when QUERY_END
|
296
306
|
"Query end"
|
297
307
|
|
data/lib/aerospike/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aerospike
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Khosrow Afroozeh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
version_requirements: !ruby/object:Gem::Requirement
|