lib/aerospike/command/read_command.rb in aerospike-2.12.0 vs lib/aerospike/command/read_command.rb in aerospike-2.13.0

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright 2014-2017 Aerospike, Inc. +# Copyright 2014-2020 Aerospike, Inc. # # Portions may be licensed to Aerospike, Inc. under one or more contributor # license agreements. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not @@ -35,9 +35,13 @@ @bin_names = bin_names @policy = policy self + end + + def get_node + @cluster.read_node(@partition, @policy.replica, @sequence) end def write_buffer set_read(@policy, @key, @bin_names) end