Skip to content

Commit

Permalink
fix auth for scan
Browse files Browse the repository at this point in the history
  • Loading branch information
caton-hpg committed Apr 26, 2024
1 parent a78a20f commit 4e4138f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions include/nebula/sclient/StorageClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class StorageClient {
std::string filter = "",
bool onlyLatestVersion = false,
bool enableReadFromFollower = true,
bool needAuth = false,
const std::string& username = "",
const std::string& password = "");

Expand All @@ -96,7 +95,6 @@ class StorageClient {
std::string filter = "",
bool onlyLatestVersion = false,
bool enableReadFromFollower = true,
bool needAuth = false,
const std::string& username = "",
const std::string& password = "");

Expand Down
6 changes: 2 additions & 4 deletions src/sclient/StorageClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ ScanEdgeIter StorageClient::scanEdgeWithPart(std::string spaceName,
std::string filter,
bool onlyLatestVersion,
bool enableReadFromFollower,
bool needAuth,
const std::string& username,
const std::string& password) {
auto spaceIdResult = mClient_->getSpaceIdByNameFromCache(spaceName);
Expand Down Expand Up @@ -84,7 +83,7 @@ ScanEdgeIter StorageClient::scanEdgeWithPart(std::string spaceName,
req->set_filter(filter);
req->set_only_latest_version(onlyLatestVersion);
req->set_enable_read_from_follower(enableReadFromFollower);
req->set_need_authenticate(needAuth);
req->set_need_authenticate(true);
req->set_username(username);
req->set_password(password);

Expand Down Expand Up @@ -125,7 +124,6 @@ ScanVertexIter StorageClient::scanVertexWithPart(
std::string filter,
bool onlyLatestVersion,
bool enableReadFromFollower,
bool needAuth,
const std::string& username,
const std::string& password) {
auto spaceIdResult = mClient_->getSpaceIdByNameFromCache(spaceName);
Expand Down Expand Up @@ -164,7 +162,7 @@ ScanVertexIter StorageClient::scanVertexWithPart(
req->set_filter(filter);
req->set_only_latest_version(onlyLatestVersion);
req->set_enable_read_from_follower(enableReadFromFollower);
req->set_need_authenticate(needAuth);
req->set_need_authenticate(true);
req->set_username(username);
req->set_password(password);

Expand Down

0 comments on commit 4e4138f

Please sign in to comment.