Congyuwang / RocksDict

Python fast on-disk dictionary / RocksDB & SpeeDB Python binding
https://congyuwang.github.io/RocksDict/rocksdict.html
MIT License
173 stars 8 forks source link

Fix code scanning alert - usage of an Arc that is not Send or Sync #81

Closed Congyuwang closed 10 months ago

Congyuwang commented 11 months ago

Switch to DB<Multithreaded> and remove some Arc usage to Rc.

Tracking issue for:

Congyuwang commented 10 months ago

Cannot be easily switched due to different memory model of python and rust (specifically DB Multithreaded uses life time to ensure cf_family lifetime shorter than db lifetime).