Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
fix sent ingest request to leader (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
darionyaphet authored Aug 4, 2021
1 parent 03d26f6 commit fd9392e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/clients/meta/MetaClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3782,7 +3782,7 @@ folly::Future<StatusOr<bool>> MetaClient::download(const std::string& hdfsHost,

folly::Future<StatusOr<bool>> MetaClient::ingest(GraphSpaceID spaceId) {
auto url = folly::stringPrintf("http://%s:%d/ingest-dispatch?space=%d",
active_.host.c_str(), FLAGS_ws_meta_http_port, spaceId);
leader_.host.c_str(), FLAGS_ws_meta_http_port, spaceId);
auto func = [url] {
auto result = http::HttpClient::get(url);
if (result.ok() && result.value() == "SSTFile ingest successfully") {
Expand Down

0 comments on commit fd9392e

Please sign in to comment.