Skip to content

Commit

Permalink
Rename ec range_scan_vb_uuid_not_equal to mutation_token_outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
DemetrisChr authored and avsej committed Jun 23, 2023
1 parent 36a666c commit 1297d4e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/impl/key_value_error_category.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ struct key_value_error_category : std::error_category {
return "cannot_revive_living_document (131)";
case errc::key_value::xattr_no_access:
return "xattr_no_access (130)";
case errc::key_value::range_scan_vb_uuid_not_equal:
return "range_scan_vb_uuid_not_equal (133)";
case errc::key_value::mutation_token_outdated:
return "mutation_token_outdated (133)";
case errc::key_value::range_scan_completed:
return "range_scan_completed (134)";
}
Expand Down
2 changes: 1 addition & 1 deletion core/protocol/status.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ map_status_code(protocol::client_opcode opcode, std::uint16_t status)
return errc::common::request_canceled;

case key_value_status_code::range_scan_vb_uuid_not_equal:
return errc::key_value::range_scan_vb_uuid_not_equal;
return errc::key_value::mutation_token_outdated;

case key_value_status_code::unknown:
break;
Expand Down
2 changes: 1 addition & 1 deletion couchbase/error_codes.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ enum class key_value {
// KV Code: 0xd6
cannot_revive_living_document = 131,

range_scan_vb_uuid_not_equal = 133,
mutation_token_outdated = 133,
range_scan_completed = 134,
};

Expand Down
2 changes: 1 addition & 1 deletion couchbase/fmt/key_value_status_code.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ struct fmt::formatter<couchbase::key_value_status_code> {
name = "range_scan_complete (0xa7)";
break;
case key_value_status_code::range_scan_vb_uuid_not_equal:
name = "range_scan_vb_uuid_not_equal (0xa8)";
name = "mutation_token_outdated (0xa8)";
break;

case key_value_status_code::unknown:
Expand Down

0 comments on commit 1297d4e

Please sign in to comment.