From 1c4c3106fd9a04f502ac85814bf91e177c1fc7b7 Mon Sep 17 00:00:00 2001
From: tiboratAS <tibor@aerospike.com>
Date: Tue, 14 Mar 2017 06:49:54 -0700
Subject: [PATCH] [aerospike] Change the write policy to REPLACE_ONLY (#937)

The original Aerospike interface layer was created when the REPLACE_ONLY option was not available.  This provides a policy more in line with the policies that other databases have implemented their interface layers.
---
 aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java b/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java
index 5aa80e46..e651a7e6 100644
--- a/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java
+++ b/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java
@@ -57,7 +57,7 @@ public class AerospikeClient extends com.yahoo.ycsb.DB {
   @Override
   public void init() throws DBException {
     insertPolicy.recordExistsAction = RecordExistsAction.CREATE_ONLY;
-    updatePolicy.recordExistsAction = RecordExistsAction.UPDATE_ONLY;
+    updatePolicy.recordExistsAction = RecordExistsAction.REPLACE_ONLY;
 
     Properties props = getProperties();
 
-- 
GitLab