Skip to content

Commit

Permalink
Remove the read-txn-no-tls feature from heed3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Dec 23, 2024
1 parent f4216dc commit 442b0fe
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions heed3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ url = "2.5.4"
default = ["serde", "serde-bincode", "serde-json"]
serde = ["bitflags/serde", "dep:serde"]

# The #MDB_NOTLS flag is automatically set on Env opening,
# RoTxn and RoCursors implements the Send trait. This allows the
# user to move RoTxns and RoCursors between threads as read transactions
# will no more use thread local storage and will tie reader locktable
# slots to #MDB_txn objects instead of to threads.
#
# According to the LMDB documentation, when this feature is not enabled:
# A thread can only use one transaction at a time, plus any child
# transactions. Each transaction belongs to one thread. [...]
# The #MDB_NOTLS flag changes this for read-only transactions.
#
# And a #MDB_BAD_RSLOT error will be thrown when multiple read
# transactions exists on the same thread
read-txn-no-tls = []

# Enable the serde en/decoders for bincode, serde_json, or rmp_serde
serde-bincode = ["heed-types/serde-bincode"]
serde-json = ["heed-types/serde-json"]
Expand Down

0 comments on commit 442b0fe

Please sign in to comment.