lib/aerospike/command/read_command.rb in aerospike-2.2.1 vs lib/aerospike/command/read_command.rb in aerospike-2.3.0

- old
+ new

@@ -1,7 +1,7 @@ # encoding: utf-8 -# Copyright 2014 Aerospike, Inc. +# Copyright 2014-2016 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 @@ -16,11 +16,10 @@ require 'aerospike/record' require 'aerospike/command/single_command' require 'aerospike/policy/operate_policy' -require 'aerospike/utils/epoc' require 'aerospike/value/value' module Aerospike private @@ -55,10 +54,10 @@ # that section of the header. If we do care, uncomment and check! sz = @data_buffer.read_int64(0) header_length = @data_buffer.read(8).ord result_code = @data_buffer.read(13).ord & 0xFF generation = @data_buffer.read_int32(14) - expiration = Aerospike.TTL(@data_buffer.read_int32(18)) + expiration = @data_buffer.read_int32(18) field_count = @data_buffer.read_int16(26) # almost certainly 0 op_count = @data_buffer.read_int16(28) receive_size = (sz & 0xFFFFFFFFFFFF) - header_length # Read remaining message bytes.