You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by Anonymous <no...@github.com.INVALID> on 2020/09/22 13:35:03 UTC

[apache/incubator-teaclave-sgx-sdk] samplecode: fix possible deadlock in db-server (#269)

In samplecode/db-proxy/db-server/src/server/mod.rs:
There are two `db.read()` in fn `fn db_get()`, which may cause deadlock when interleaved by a `db.write()` (e.g. in `db_put()` or `db_delete()`) from another thread.

The fix is to remove the redundant `db.read()`.
You can view, comment on, or merge this pull request online at:

  https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269

-- Commit Summary --

  * samplecode: fix possible deadlock in db-server

-- File Changes --

    M samplecode/db-proxy/db-server/src/server/mod.rs (1)

-- Patch Links --

https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269.patch
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269

Re: [apache/incubator-teaclave-sgx-sdk] samplecode: fix possible deadlock in db-server (#269)

Posted by Yu Ding <no...@github.com.INVALID>.
Merged #269 into master.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/269#event-3911645902