mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
docs(libmdbx): more static_files -> snapshots (#8047)
This commit is contained in:
@ -950,8 +950,7 @@ mod tests {
|
|||||||
.open(tempdir.path())
|
.open(tempdir.path())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
// Insert some data in the database, so the read transaction can lock on the static file of
|
// Insert some data in the database, so the read transaction can lock on the snapshot of it
|
||||||
// it
|
|
||||||
{
|
{
|
||||||
let tx = env.begin_rw_txn().unwrap();
|
let tx = env.begin_rw_txn().unwrap();
|
||||||
let db = tx.open_db(None).unwrap();
|
let db = tx.open_db(None).unwrap();
|
||||||
@ -964,8 +963,7 @@ mod tests {
|
|||||||
// Create a read transaction
|
// Create a read transaction
|
||||||
let _tx_ro = env.begin_ro_txn().unwrap();
|
let _tx_ro = env.begin_ro_txn().unwrap();
|
||||||
|
|
||||||
// Change previously inserted data, so the read transaction would use the previous static
|
// Change previously inserted data, so the read transaction would use the previous snapshot
|
||||||
// file
|
|
||||||
{
|
{
|
||||||
let tx = env.begin_rw_txn().unwrap();
|
let tx = env.begin_rw_txn().unwrap();
|
||||||
let db = tx.open_db(None).unwrap();
|
let db = tx.open_db(None).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user