Skip to content

Commit

Permalink
CLIENT-3097 Add XDR_KEY_BUSY result code.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianNichols committed Aug 27, 2024
1 parent 36c40a7 commit 9b9aee9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/src/com/aerospike/client/ResultCode.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 Aerospike, Inc.
* Copyright 2012-2024 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements WHICH ARE COMPATIBLE WITH THE APACHE LICENSE, VERSION 2.0.
Expand Down Expand Up @@ -233,6 +233,11 @@ public final class ResultCode {
*/
public static final int LOST_CONFLICT = 28;

/**
* Write can't complete until XDR finishes shipping.
*/
public static final int XDR_KEY_BUSY = 32;

/**
* There are no more records left for query.
*/
Expand Down Expand Up @@ -582,6 +587,9 @@ public static String getResultString(int resultCode) {
case LOST_CONFLICT:
return "Transaction failed due to conflict with XDR";

case XDR_KEY_BUSY:
return "Write can't complete until XDR finishes shipping";

case QUERY_END:
return "Query end";

Expand Down

0 comments on commit 9b9aee9

Please sign in to comment.