aerospike 2.28.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,9 +23,9 @@ module Aerospike
23
23
 
24
24
  class ScanPartitionCommand < StreamCommand #:nodoc:
25
25
 
26
- def initialize(policy, tracker, node_partitions, namespace, set_name, bin_names, recordset)
26
+ def initialize(cluster, policy, tracker, node_partitions, namespace, set_name, bin_names, recordset)
27
27
  super(node_partitions.node)
28
-
28
+ @cluster = cluster
29
29
  @policy = policy
30
30
  @namespace = namespace
31
31
  @set_name = set_name
@@ -36,7 +36,7 @@ module Aerospike
36
36
  end
37
37
 
38
38
  def write_buffer
39
- set_scan(@policy, @namespace, @set_name, @bin_names, @node_partitions)
39
+ set_scan(@cluster, @policy, @namespace, @set_name, @bin_names, @node_partitions)
40
40
  end
41
41
 
42
42
  def should_retry(e)
@@ -33,12 +33,11 @@ module Aerospike
33
33
  end
34
34
 
35
35
  def write_buffer
36
- set_query(@policy, @statement, background, nil)
36
+ set_query(@cluster, @policy, @statement, true, nil)
37
37
  end
38
38
 
39
- def parse_row
39
+ def parse_row(result_code)
40
40
  field_count = @data_buffer.read_int16(18)
41
- result_code = @data_buffer.read(5).ord & 0xFF
42
41
  skip_key(field_count)
43
42
 
44
43
  if result_code != 0
@@ -1,4 +1,4 @@
1
- # Copyright 2013-2020 Aerospike, Inc.
1
+ # Copyright 2013-2023 Aerospike, Inc.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ module Aerospike
47
47
  end
48
48
 
49
49
  conn = node.get_connection(0)
50
- responseMap, _ = Info.request(conn, command)
50
+ responseMap, = Info.request(conn, command)
51
51
  node.put_connection(conn)
52
52
 
53
53
  response = responseMap[command]
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Aerospike
3
- VERSION = "2.28.0"
3
+ VERSION = "3.0.0"
4
4
  end
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.28.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khosrow Afroozeh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-06-23 00:00:00.000000000 Z
13
+ date: 2023-12-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: msgpack