Skip to content

Commit

Permalink
[CLIENT-3103] Support XDR_KEY_BUSY
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Oct 22, 2024
1 parent 34edb01 commit 2b5df7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion lib/aerospike/result_code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b5df7c

Please sign in to comment.