## Description

In persistent mode, a LevelDB LRU assertion failure is triggered by our unit 
test case. This PR fix the issue in LRU::remove opertion. 

## Type of change (select or add applied and delete the others)

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality 
to not work as expected)
- [ ] API change with a documentation update
- [ ] Additional test coverage
- [ ] Code cleanup or just sync with upstream third-party crates

## How has this been tested?

## Checklist

- [x] Fork the repo and create your branch from `master`.
- [x] If you've added code that should be tested, add tests.
- [x] If you've changed APIs, update the documentation.
- [x] Ensure the tests pass (see CI results).
- [ ] Make sure your code lints/format.

You can view, comment on, or merge this pull request online at:

  https://github.com/apache/incubator-teaclave/pull/583

-- Commit Summary --

  * [Fix] leveldb lru bug, using disk db for unit test.

-- File Changes --

    M common/rusty_leveldb_sgx/src/cache.rs (45)
    M services/storage/enclave/src/service.rs (8)

-- Patch Links --

https://github.com/apache/incubator-teaclave/pull/583.patch
https://github.com/apache/incubator-teaclave/pull/583.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/pull/583

Reply via email to