You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by di...@apache.org on 2020/10/23 00:39:55 UTC

[incubator-teaclave-sgx-sdk] branch master updated: samplecode: fix possible deadlock in db-server

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

dingyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git


The following commit(s) were added to refs/heads/master by this push:
     new e3230b9  samplecode: fix possible deadlock in db-server
     new d949967  Merge pull request #269 from BurtonQin/fix-double-lock
e3230b9 is described below

commit e3230b9d60221c75d2c682d78d8b499fe12d2731
Author: BurtonQin <bo...@gmail.com>
AuthorDate: Tue Sep 22 21:23:54 2020 +0800

    samplecode: fix possible deadlock in db-server
---
 samplecode/db-proxy/db-server/src/server/mod.rs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/samplecode/db-proxy/db-server/src/server/mod.rs b/samplecode/db-proxy/db-server/src/server/mod.rs
index 1b7a499..36fe2c5 100644
--- a/samplecode/db-proxy/db-server/src/server/mod.rs
+++ b/samplecode/db-proxy/db-server/src/server/mod.rs
@@ -64,7 +64,6 @@ impl server {
 
     fn db_get(&mut self, key: String) -> String {
         let db = self.db_handler.clone();
-        let db_read = db.read();
         let r = db.read().get(key.as_str());
         match r {
             Err(t) => return String::new(),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org