Skip to content
Snippets Groups Projects
Commit 1c4c3106 authored by tiboratAS's avatar tiboratAS Committed by Kevin Risden
Browse files

[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.
parent 68fbbb0a
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment