Skip to content

Commit

Permalink
CLIENT-3259 Add AEROSPIKE_MRT_ALREADY_LOCKED and AEROSPIKE_MRT_MONITO…
Browse files Browse the repository at this point in the history
…R_EXISTS error codes.
  • Loading branch information
BrianNichols committed Jan 10, 2025
1 parent 94d1f55 commit ae67461
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/include/aerospike/as_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,16 @@ typedef enum as_status_e {
*/
AEROSPIKE_MRT_ABORTED = 125,

/**
* This record has been locked by a previous update in this transaction.
*/
AEROSPIKE_MRT_ALREADY_LOCKED = 126,

/**
* This transaction has already started. Writing to the same transaction with independent threads is unsafe.
*/
AEROSPIKE_MRT_MONITOR_EXISTS = 127,

/**
* Batch functionality has been disabled.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/main/aerospike/as_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ as_error_string(as_status status)
CASE_ASSIGN(AEROSPIKE_MRT_TOO_MANY_WRITES);
CASE_ASSIGN(AEROSPIKE_MRT_COMMITTED);
CASE_ASSIGN(AEROSPIKE_MRT_ABORTED);
CASE_ASSIGN(AEROSPIKE_MRT_ALREADY_LOCKED);
CASE_ASSIGN(AEROSPIKE_MRT_MONITOR_EXISTS);
CASE_ASSIGN(AEROSPIKE_ERR_BATCH_DISABLED);
CASE_ASSIGN(AEROSPIKE_ERR_BATCH_MAX_REQUESTS_EXCEEDED);
CASE_ASSIGN(AEROSPIKE_ERR_BATCH_QUEUES_FULL);
Expand Down

0 comments on commit ae67461

Please sign in to comment.