lib/aerospike/command/read_command.rb in aerospike-0.1.0 vs lib/aerospike/command/read_command.rb in aerospike-0.1.1
- old
+ new
@@ -73,11 +73,11 @@
end
end
if result_code != 0
- return if result_code == Aerospike::ResultCode::KEY_NOT_FOUND_ERROR
-
+ return nil if result_code == Aerospike::ResultCode::KEY_NOT_FOUND_ERROR
+ return nil if result_code == Aerospike::ResultCode::LARGE_ITEM_NOT_FOUND
if result_code == Aerospike::ResultCode::UDF_BAD_RESPONSE
begin
@record = parse_record(op_count, field_count, generation, expiration)
handle_udf_error(result_code)
rescue => e