Skip to content

Commit

Permalink
Show leader version when reporting mismatch in /status/handlingCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
rafecolton committed Jun 14, 2024
1 parent b2adefe commit 3cd7fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BedrockServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ void BedrockServer::_status(unique_ptr<BedrockCommand>& command) {
// This is similar to the above check, and is used for letting HAProxy load-balance commands.

if (_version != _leaderVersion.load()) {
response.methodLine = "HTTP/1.1 500 Mismatched version. Version=" + _version;
response.methodLine = "HTTP/1.1 500 Mismatched version. Version=" + _version + ", LeaderVersion=" + _leaderVersion.load();
} else {
string method = "HTTP/1.1 ";

Expand Down

0 comments on commit 3cd7fe8

Please sign in to comment.