This is an automated email from the ASF dual-hosted git repository.

junchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 035a1bb3 Smart contract merge (#173)
035a1bb3 is described below

commit 035a1bb3367fb44438a7293e0b5bec0ad0165133
Author: cjcchen <[email protected]>
AuthorDate: Fri Feb 14 17:14:56 2025 +0800

    Smart contract merge (#173)
    
    * add poe
    
    * add
    
    * update workflo
    
    * add log
    
    * change github name
    
    * change img files
    
    * fix workflow
    
    * fix communicator
    
    * rm log
    
    * add base fairdag
    
    * add fairdag
    
    * add hs
    
    * add hs
    
    * add ooohs
    
    * add tusk
    
    * add rcc
    
    * add rcc
    
    * add config
    
    * add cassandra
    
    * add cassandra
    
    * add prepare
    
    * add prepare
    
    * add cass 256
    
    * add ooowq
    
    * rcc done
    
    * done
    
    * rcc done
    
    * add
    
    * add fair
    
    * add cass
    
    * add poe
    
    * fix execution response
    
    * remove smallbank
    
    * fix performance script
    
    * add fairdag rl
    
    * add graph
    
    * add fair
    
    * add
    
    * done
    
    * done
    
    * done
    
    * fix build
    
    * add perf
    
    * linear poe
    
    * add
    
    * update
    
    * fix
    
    * update
    
    * update
    
    * update
    
    * update
    
    * add log
    
    * revert
    
    * revert
    
    * rm
    
    * fix
    
    * add storage
    
    * add sm in kv
    
    * add kv cmd for sm
    
    * update
    
    * add contact kv
    
    * format
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * merge master
    
    * add license
    
    * fix build
    
    * add boost
    
    * add deps
    
    * change para
    
    * add readme
    
    ---------
    
    Co-authored-by: Ubuntu <[email protected]>
    Co-authored-by: Ubuntu <[email protected]>
    Co-authored-by: Ubuntu <[email protected]>
    Co-authored-by: Ubuntu <[email protected]>
    Co-authored-by: junchao <junchao@localhost>
---
 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);
 }
 

Reply via email to