gecko-dev/third_party/rust/lmdb-rkv
Nan Jiang ac0e950c6e Bug 1543861 - Add auto resizing for kvstore r=myk
This patch implements the auto resizing to handle the MDB_MAP_FULL error. It adds two resizing strategies: 1). Active resizing to increase the store size when it gets opened; 2). Passive resizing to increase the store size when the write transaction encounters the MDB_MAP_FULL error. There are no changes to kvstore APIs, existing consumers will get this feature working without any changes to their code.

Differential Revision: https://phabricator.services.mozilla.com/D32216

--HG--
extra : moz-landing-system : lando
2019-05-24 20:38:23 +00:00
..
src Bug 1543861 - Add auto resizing for kvstore r=myk 2019-05-24 20:38:23 +00:00
.cargo-checksum.json Bug 1543861 - Add auto resizing for kvstore r=myk 2019-05-24 20:38:23 +00:00
Cargo.toml Bug 1543861 - Add auto resizing for kvstore r=myk 2019-05-24 20:38:23 +00:00
LICENSE Bug 1445451 - vendor rkv; r=froydnj 2018-08-09 19:42:17 +00:00
README.md Bug 1445451 - vendor rkv; r=froydnj 2018-08-09 19:42:17 +00:00

README.md

Build Status Windows Build status

lmdb-rs

Idiomatic and safe APIs for interacting with the Symas Lightning Memory-Mapped Database (LMDB).

This repo is a fork of danburkert/lmdb-rs with fixes for issues encountered by mozilla/rkv.

Building from Source

git clone --recursive git@github.com:mozilla/lmdb-rs.git
cd lmdb-rs
cargo build

Features

  • lmdb-sys.
  • Cursors.
  • Zero-copy put API.
  • Nested transactions.
  • Database statistics.