Open Bug 1821056 Opened 2 years ago Updated 1 year ago

kvstore: Disallow opening multiple handles to the same database

Categories

(Core :: SQLite and Embedded Database Bindings, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: chutten, Unassigned)

References

Details

Per bug 1805427, comment 26 and bug 1807010, comment #2:

  • rkv in SafeMode is not threadsafe (and making it threadsafe is a) hard, b) probably not worth it, and c) not likely the correct design to pursue)
  • kvstore makes claims of supporting multiple dbs at the same path which have proven incorrect: bug 1805427, bug 1807010
    • The claims might've been correct under LMDB, but rkv is being used in SafeMode here.
  • kvstore can resolve things refusing to open multiple handles to the same database.

This bug is about handling multiple consumers of storage at the same path. Be careful, have fun, and good luck.

Severity: -- → N/A
Priority: -- → P3

The new SQLite backend that we're building for kvstore—with the goal of migrating all rkv databases to it, and eventually removing the rkv crate from the tree—explicitly supports multiple databases at the same path!

Let's keep this bug open, since the new backend is still in progress, and we haven't migrated any consumers to it—but good things are coming! 😊

See Also: → skv
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.