From ad754fc08cd239b518777ab2b4f37eac11cf3e07 Mon Sep 17 00:00:00 2001 From: "sachin.vm" Date: Mon, 18 Dec 2023 14:53:44 -0800 Subject: [PATCH] v3.0.0. server 7.0 support features. --- CHANGELOG.md | 3 ++- lib/aerospike/command/command.rb | 15 +-------------- lib/aerospike/version.rb | 2 +- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df3211b..f841a7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ All notable changes to this project will be documented in this file. -## [2.30.0] 2023-12-15 +## [3.0.0] 2023-12-15 +Notice: This version of the client only supports Aerospike Server v6.0 and later. Some features will work for the older server versions. - **new_features** - [CLIENT-2575] - Support Exp.recordSize(). - [CLIENT-2621] - Support persistent map indexes. diff --git a/lib/aerospike/command/command.rb b/lib/aerospike/command/command.rb index e8b62ce..4bedc89 100644 --- a/lib/aerospike/command/command.rb +++ b/lib/aerospike/command/command.rb @@ -627,7 +627,7 @@ def set_query(cluster, policy, statement, background, node_partitions) operation_count = bin_names.length # Estimate size for selected bin names (query bin names already handled for old servers). end - @data_buffer.reset + size_buffer if background @@ -725,19 +725,6 @@ def set_query(cluster, policy, statement, background, node_partitions) end_cmd end - def hex_dump_from_string(data_buffer) - byte_array = data_buffer.to_s.unpack('C*') - hex_dump(byte_array) - end - - def hex_dump(byte_array) - byte_array.each_slice(16) do |slice| - hex_line = slice.map { |b| format('%02X', b) }.join(' ') - char_line = slice.map { |b| (b >= 32 && b <= 126) ? b.chr : '.' }.join - puts "#{hex_line.ljust(48)} | #{char_line}" - end - end - def execute iterations = 0 diff --git a/lib/aerospike/version.rb b/lib/aerospike/version.rb index 8f7a315..e135e52 100644 --- a/lib/aerospike/version.rb +++ b/lib/aerospike/version.rb @@ -1,4 +1,4 @@ # encoding: utf-8 module Aerospike - VERSION = "2.30.0" + VERSION = "3.0.0" end