Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Dec 25, 2023
1 parent 9328e33 commit 7e207a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/meta/meta_http_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,10 @@ void meta_http_service::update_scenario_handler(const http_request &req, http_re
bool meta_http_service::redirect_if_not_primary(const http_request &req, http_response &resp)
{
#ifdef MOCK_TEST
// Once MOCK_TEST is defined, the meta server must has been built with `./run.sh build --test`.
// To enable MOCK_TEST, the option BUILD_TEST for cmake should be opened by:
// cmake -DBUILD_TEST=ON ...
// which could be done by building Pegasus with tests by:
// ./run.sh build --test ...
//
// If `_service->_balancer` is not null, it must has been initialized by mocking, in which case
// just returning true is ok.
Expand Down

0 comments on commit 7e207a6

Please sign in to comment.