Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hotrod/impl/operations/ContainsKeyOperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bool ContainsKeyOperation::executeOperation(Transport& transport)
bool containsKey = false;
uint8_t status = sendKeyOperation(key,
transport, CONTAINS_KEY_REQUEST, CONTAINS_KEY_RESPONSE);
if (status == NO_ERROR_STATUS) {
if (HotRodConstants::isSuccess(status)) {
containsKey = true;
TRACE("Result is true");
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/hotrod/impl/operations/GetOperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ std::vector<char> GetOperation::executeOperation(Transport& transport) {
TRACE("Executing Get(flags=%u)", flags);
TRACEBYTES("key = ", key);
uint8_t status = sendKeyOperation(key, transport, GET_REQUEST, GET_RESPONSE);
if (status == NO_ERROR_STATUS) {
if (HotRodConstants::isSuccess(status)) {
result = transport.readArray();
TRACEBYTES("return value = ", result);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/hotrod/impl/operations/GetWithMetadataOperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MetadataValueImpl<std::vector<char>> GetWithMetadataOperation::executeOperation(
TRACEBYTES("key = ", key);
uint8_t status = sendKeyOperation(
key, transport, GET_WITH_METADATA_REQUEST, GET_WITH_METADATA_RESPONSE);
if (status == NO_ERROR_STATUS) {
if (HotRodConstants::isSuccess(status)) {
uint8_t flag = transport.readByte();
if ((flag & INFINITE_LIFESPAN) != INFINITE_LIFESPAN) {
result.setCreated(transport.readLong());
Expand Down
2 changes: 1 addition & 1 deletion src/hotrod/impl/operations/GetWithVersionOperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ VersionedValueImpl<std::vector<char>> GetWithVersionOperation::executeOperation(
VersionedValueImpl<std::vector<char>> result;
uint8_t status = sendKeyOperation(
key, transport, GET_WITH_VERSION_REQUEST, GET_WITH_VERSION_RESPONSE);
if (status == NO_ERROR_STATUS) {
if (HotRodConstants::isSuccess(status)) {
result.setVersion(transport.readLong());
result.setValue(transport.readArray());
TRACE("return version = %lld", result.version);
Expand Down
2 changes: 1 addition & 1 deletion src/hotrod/impl/operations/QueryOperation.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class QueryOperation : public RetryOnFailureOperation<QueryResponse>{
int8_t status=readHeaderAndValidate(t, *params);

QueryResponse qr;
if (status == NO_ERROR_STATUS) {
if (HotRodConstants::isSuccess(status)) {
std::vector<char> responseBytes = t.readArray();
qr.ParseFromArray(responseBytes.data(), (int)responseBytes.size());
}
Expand Down