This is an automated email from the ASF dual-hosted git repository.
junchao pushed a commit to branch smart_contract_merge
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git
The following commit(s) were added to refs/heads/smart_contract_merge by this
push:
new 79e98545 add readme
79e98545 is described below
commit 79e9854551aeb574ebe0f4dc8df7bf960bc80ef9
Author: cjcchen <[email protected]>
AuthorDate: Fri Feb 14 02:13:51 2025 -0700
add readme
---
README.md | 5 +++++
executor/kv/kv_executor.cpp | 4 +++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index f74d1d2c..22b7dea9 100644
--- a/README.md
+++ b/README.md
@@ -387,3 +387,8 @@ Then re-run the start script:
./service/tools/kv/server_tools/start_kv_service.sh
```
+
+
+## Smart Contract ##
+If you want to use smart contracts, please go to:
+https://blog.resilientdb.com/2025/02/14/GettingStartedSmartContract.html
diff --git a/executor/kv/kv_executor.cpp b/executor/kv/kv_executor.cpp
index cf294174..c587f592 100644
--- a/executor/kv/kv_executor.cpp
+++ b/executor/kv/kv_executor.cpp
@@ -43,7 +43,6 @@ std::unique_ptr<std::string> KVExecutor::ExecuteRequest(
const google::protobuf::Message& request) {
KVResponse kv_response;
const KVRequest& kv_request = dynamic_cast<const KVRequest&>(request);
- // LOG(ERROR)<<"execute request:";
if (kv_request.cmd() == KVRequest::SET) {
Set(kv_request.key(), kv_request.value());
@@ -95,6 +94,7 @@ std::unique_ptr<std::string> KVExecutor::ExecuteData(
return nullptr;
}
+ LOG(ERROR)<<" execute cmd:"<<kv_request.cmd();
if (kv_request.cmd() == KVRequest::SET) {
Set(kv_request.key(), kv_request.value());
} else if (kv_request.cmd() == KVRequest::GET) {
@@ -135,10 +135,12 @@ std::unique_ptr<std::string> KVExecutor::ExecuteData(
}
void KVExecutor::Set(const std::string& key, const std::string& value) {
+ LOG(ERROR)<<" set key:"<<key;
storage_->SetValue(key, value);
}
std::string KVExecutor::Get(const std::string& key) {
+ LOG(ERROR)<<" get key:"<<key;
return storage_->GetValue(key);
}