diff --git a/CHANGELOG.md b/CHANGELOG.md index 900719d..21ae460 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. - **New Features** - [CLIENT-2833] Support `Policy#ReadTouchTtlPercent`. - [CLIENT-2826] Support `QueryDuration` in `QueryPolicy#ExpectedDuration`. + - [CLIENT-3103] Support `XDR_KEY_BUSY`. - **Fixes** - [CLIENT-3144] Various fixes. PR #132 and #133 Thanks to [Igor Pstyga](https://github.com/opti) diff --git a/lib/aerospike/result_code.rb b/lib/aerospike/result_code.rb index 2b41045..2eccdea 100644 --- a/lib/aerospike/result_code.rb +++ b/lib/aerospike/result_code.rb @@ -168,6 +168,9 @@ module ResultCode # Write command loses conflict to XDR. LOST_CONFLICT = 28 + # Write can't complete until XDR finishes shipping. + XDR_KEY_BUSY = 32 + # There are no more records left for query. QUERY_END = 50 @@ -445,6 +448,10 @@ def self.message(code) when LOST_CONFLICT "Write command loses conflict to XDR." + # Write can't complete until XDR finishes shipping. + when XDR_KEY_BUSY + "XDR key busy" + when QUERY_END "Query end" @@ -580,7 +587,6 @@ def self.message(code) else "ResultCode #{code} unknown in the client. Please file a github issue." end # case - end end # class