This is an automated email from the ASF dual-hosted git repository.
junchao pushed a commit to branch recovery_ckpt
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git
The following commit(s) were added to refs/heads/recovery_ckpt by this push:
new baf34db8 rm get all interfaces
baf34db8 is described below
commit baf34db8ba71423350d7d45b5879c092aed1d794
Author: Ubuntu <[email protected]>
AuthorDate: Mon Dec 15 07:22:32 2025 +0000
rm get all interfaces
---
interface/kv/kv_client.cpp | 12 ------------
interface/kv/kv_client.h | 1 -
service/tools/config/interface/service.config | 2 +-
service/tools/kv/api_tools/kv_service_tools.cpp | 5 -----
4 files changed, 1 insertion(+), 19 deletions(-)
diff --git a/interface/kv/kv_client.cpp b/interface/kv/kv_client.cpp
index 25526395..edf7546b 100644
--- a/interface/kv/kv_client.cpp
+++ b/interface/kv/kv_client.cpp
@@ -47,18 +47,6 @@ std::unique_ptr<std::string> KVClient::Get(const
std::string& key) {
return std::make_unique<std::string>(response.value());
}
-std::unique_ptr<std::string> KVClient::GetAllValues() {
- KVRequest request;
- request.set_cmd(KVRequest::GETALLVALUES);
- KVResponse response;
- int ret = SendRequest(request, &response);
- if (ret != 0) {
- LOG(ERROR) << "send request fail, ret:" << ret;
- return nullptr;
- }
- return std::make_unique<std::string>(response.value());
-}
-
std::unique_ptr<std::string> KVClient::GetRange(const std::string& min_key,
const std::string& max_key) {
KVRequest request;
diff --git a/interface/kv/kv_client.h b/interface/kv/kv_client.h
index 52cbcab1..a58aa424 100644
--- a/interface/kv/kv_client.h
+++ b/interface/kv/kv_client.h
@@ -58,7 +58,6 @@ class KVClient : public TransactionConstructor {
// above.
int Set(const std::string& key, const std::string& data);
std::unique_ptr<std::string> Get(const std::string& key);
- std::unique_ptr<std::string> GetAllValues();
std::unique_ptr<std::string> GetRange(const std::string& min_key,
const std::string& max_key);
};
diff --git a/service/tools/config/interface/service.config
b/service/tools/config/interface/service.config
index 3d1f8e9c..2847a8d2 100644
--- a/service/tools/config/interface/service.config
+++ b/service/tools/config/interface/service.config
@@ -15,6 +15,6 @@
// specific language governing permissions and limitations
// under the License.
-5 127.0.0.1 10005
+5 172.31.57.186 17005
diff --git a/service/tools/kv/api_tools/kv_service_tools.cpp
b/service/tools/kv/api_tools/kv_service_tools.cpp
index b5cd5344..b234d550 100644
--- a/service/tools/kv/api_tools/kv_service_tools.cpp
+++ b/service/tools/kv/api_tools/kv_service_tools.cpp
@@ -101,12 +101,7 @@ void OldAPI(char** argv) {
printf("client get value fail\n");
}
} else if (cmd == "getvalues") {
- auto res = client.GetAllValues();
- if (res != nullptr) {
- printf("client getvalues value = %s\n", res->c_str());
- } else {
printf("client getvalues value fail\n");
- }
} else if (cmd == "getrange") {
auto res = client.GetRange(key, key2);
if (res != nullptr) {