Skip to content

Commit

Permalink
CLIENT-3262: Add MRT_ALREADY_LOCKED and MRT_MONITOR_EXISTS error codes (
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonklaus authored Jan 13, 2025
1 parent fc300be commit f1a4629
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions AerospikeClient/Main/ResultCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,20 @@ public sealed class ResultCode
/// MRT was already aborted.
/// Value: 125
/// </summary>
public const int MRT_ABORTED = 125;

public const int MRT_ABORTED = 125;

/// <summary>
/// This record has been locked by a previous update in this transaction.
/// Value: 126
/// </summary>
public const int MRT_ALREADY_LOCKED = 126;

/// <summary>
/// This transaction has already started. Writing to the same transaction with independent threads is unsafe.
/// Value: 127
/// </summary>
public const int MRT_MONITOR_EXISTS = 127;

/// <summary>
/// Batch functionality has been disabled.
/// Value: 150
Expand Down Expand Up @@ -834,8 +846,14 @@ public static string GetResultString(int resultCode)
return "MRT already committed";

case MRT_ABORTED:
return "MRT already aborted";

return "MRT already aborted";

case MRT_ALREADY_LOCKED:
return "This record has been locked by a previous update in this transaction";

case MRT_MONITOR_EXISTS:
return "This transaction has already started. Writing to the same transaction with independent threads is unsafe";

case BATCH_DISABLED:
return "Batch functionality has been disabled";

Expand Down

0 comments on commit f1a4629

Please sign in to comment.