All Versions
30
Latest Version
Avg Release Cycle
36 days
Latest Release
435 days ago

Changelog History
Page 2

  • v0.10.1 Changes

    June 01, 2021

    Acknowledgements:

    ๐Ÿ†• New features:

    • Added -p option to mdbx_stat utility for printing page operations statistic.
    • Added explicit checking for and warning about using unfit github's archives.
    • Added fallback from OFD locking to legacy non-OFD POSIX file locks on an EINVAL error.
    • Added Plan 9 network file system to the whitelist for an ability to open a DB in exclusive mode.
    • Support for opening from WSL2 environment a DB hosted on Windows drive and mounted via DrvFs (i.e by Plan 9 noted above).

    ๐Ÿ›  Fixes:

  • v0.10.0 Changes

    May 09, 2021

    Acknowledgements:

    ๐Ÿ†• New features:

    • Added mdbx_env_set_option() and mdbx_env_get_option() for controls various runtime options for an environment (announce of this feature was missed in a previous news).
    • Added MDBX_DISABLE_PAGECHECKS build option to disable some checks to reduce an overhead and detection probability of database corruption to a values closer to the LMDB. The MDBX_DISABLE_PAGECHECKS=1 provides a performance boost of about 10% in CRUD scenarios, and conjointly with the MDBX_ENV_CHECKPID=0 and MDBX_TXN_CHECKOWNER=0 options can yield up to 30% more performance compared to LMDB.
    • Using float point (exponential quantized) representation for internal 16-bit values of grow step and shrink threshold when huge ones (https://github.com/erthink/libmdbx/issues/166). To minimize the impact on compatibility, only the odd values inside the upper half of the range (i.e. 32769..65533) are used for the new representation.
    • Added the mdbx_drop similar to LMDB command-line tool to purge or delete (sub)database(s).
    • Ruby bindings is available now by Mahlon E. Smith.
    • Added MDBX_ENABLE_MADVISE build option which controls the use of POSIX madvise() hints and friends.
    • The internal node sizes were refined, resulting in a reduction in large/overflow pages in some use cases and a slight increase in limits for a keys size to โ‰ˆยฝ of page size.
    • Added to mdbx_chk output number of keys/items on pages.
    • Added explicit install-strip and install-no-strip targets to the Makefile (https://github.com/erthink/libmdbx/pull/180).
    • Major rework page splitting (af9b7b560505684249b76730997f9e00614b8113) for
      • An "auto-appending" feature upon insertion for both ascending and descending key sequences. As a result, the optimality of page filling increases significantly (more densely, less slackness) while inserting ordered sequences of keys,
      • A "splitting at middle" to make page tree more balanced on average.
    • Added mdbx_get_sysraminfo() to the API.
    • Added guessing a reasonable maximum DB size for the default upper limit of geometry (https://github.com/erthink/libmdbx/issues/183).
    • Major rework internal labeling of a dirty pages (958fd5b9479f52f2124ab7e83c6b18b04b0e7dda) for a "transparent spilling" feature with the gist to make a dirty pages be ready to spilling (writing to a disk) without further altering ones. Thus in the MDBX_WRITEMAP mode the OS kernel able to oust dirty pages to DB file without further penalty during transaction commit. As a result, page swapping and I/O could be significantly reduced during extra large transactions and/or lack of memory.
    • Minimized reading leaf-pages during dropping subDB(s) and nested trees.
    • Major rework a spilling of dirty pages to support LRU policy and prioritization for a large/overflow pages.
    • Statistics of page operations (split, merge, copy, spill, etc) now available through mdbx_env_info_ex().
    • Auto-setup limit for length of dirty pages list (MDBX_opt_txn_dp_limit option).
    • Support make options to list available build options.
    • Support make help to list available make targets.
    • Silently make's build by default.
    • Preliminary Python bindings is available now by Noel Kuntze (https://github.com/erthink/libmdbx/issues/147).

    Backward compatibility break:

    • The MDBX_AVOID_CRT build option was renamed to MDBX_WITHOUT_MSVC_CRT. This option is only relevant when building for Windows.
    • The mdbx_env_stat() always, and mdbx_env_stat_ex() when called with the zeroed transaction parameter, now internally start temporary read transaction and thus may returns MDBX_BAD_RSLOT error. So, just never use deprecated mdbx_env_stat()' and callmdbx_env_stat_ex()` with transaction parameter.
    • The build option MDBX_CONFIG_MANUAL_TLS_CALLBACK was removed and now just a non-zero value of the MDBX_MANUAL_MODULE_HANDLER macro indicates the requirement to manually call mdbx_module_handler() when loading libraries and applications uses statically linked libmdbx on an obsolete Windows versions.

    ๐Ÿ›  Fixes:

  • v0.9.4 Changes

    March 18, 2021

    TODO:

    Acknowledgements:

    ๐Ÿ†• New features:

    • Added MDBX_DISABLE_PAGECHECKS build option to disable some checks to reduce an overhead and detection probability of database corruption to a values closer to the LMDB. The MDBX_DISABLE_PAGECHECKS=1 provides a performance boost of about 10% in CRUD scenarios, and conjointly with the MDBX_ENV_CHECKPID=0 and MDBX_TXN_CHECKOWNER=0 options can yield up to 30% more performance compared to LMDB.
    • Using float point (exponential quantized) representation for internal 16-bit values of grow step and shrink threshold when huge ones (https://github.com/erthink/libmdbx/issues/166). To minimize the impact on compatibility, only the odd values inside the upper half of the range (i.e. 32769..65533) are used for the new representation.
    • Added the mdbx_drop similar to LMDB command-line tool to purge or delete (sub)database(s).
    • Ruby bindings is available now by Mahlon E. Smith.
    • Added MDBX_ENABLE_MADVISE build option which controls the use of POSIX madvise() hints and friends.
    • The internal node sizes were refined, resulting in a reduction in large/overflow pages in some use cases and a slight increase in limits for a keys size.

    ๐Ÿ›  Fixes:

  • v0.9.3 Changes

    February 02, 2021

    Acknowledgements:

    โœ‚ Removed options and features:

    • Drop MDBX_HUGE_TRANSACTIONS build-option (now no longer required).

    ๐Ÿ†• New features:

    • Package for FreeBSD is available now by Mahlon E. Smith.
    • New API functions to get/set various options (https://github.com/erthink/libmdbx/issues/128):
      • the maximum number of named databases for the environment;
      • the maximum number of threads/reader slots;
      • threshold (since the last unsteady commit) to force flush the data buffers to disk;
      • relative period (since the last unsteady commit) to force flush the data buffers to disk;
      • limit to grow a list of reclaimed/recycled page's numbers for finding a sequence of contiguous pages for large data items;
      • limit to grow a cache of dirty pages for reuse in the current transaction;
      • limit of a pre-allocated memory items for dirty pages;
      • limit of dirty pages for a write transaction;
      • initial allocation size for dirty pages list of a write transaction;
      • maximal part of the dirty pages may be spilled when necessary;
      • minimal part of the dirty pages should be spilled when necessary;
      • how much of the parent transaction dirty pages will be spilled while start each child transaction;
    • Unlimited/Dynamic size of retired and dirty page lists (https://github.com/erthink/libmdbx/issues/123).
    • Added -p option (purge subDB before loading) to mdbx_load tool.
    • Reworked spilling of large transaction and committing of nested transactions:
      • page spilling code reworked to avoid the flaws and bugs inherited from LMDB;
      • limit for number of dirty pages now is controllable at runtime;
      • a spilled pages, including overflow/large pages, now can be reused and refunded/compactified in nested transactions;
      • more effective refunding/compactification especially for the loosed page cache.
    • Added MDBX_ENABLE_REFUND and MDBX_PNL_ASCENDING internal/advanced build options.
    • Added mdbx_default_pagesize() function.
    • Better support architectures with a weak/relaxed memory consistency model (ARM, AARCH64, PPC, MIPS, RISC-V, etc) by means C11 atomics.
    • Speed up page number lists and dirty page lists (https://github.com/erthink/libmdbx/issues/132).
    • Added LIBMDBX_NO_EXPORTS_LEGACY_API build option.

    ๐Ÿ›  Fixes:

  • v0.9.2 Changes

    November 27, 2020

    Acknowledgements:

    โž• Added features:

    • ๐Ÿ— Provided package for buildroot.
    • Binding for Nim is available now by Jens Alfke.
    • Added mdbx_env_delete() for deletion an environment files in a proper and multiprocess-safe way.
    • Added mdbx_txn_commit_ex() with collecting latency information.
    • Fast completion pure nested transactions.
    • Added LIBMDBX_INLINE_API macro and inline versions of some API functions.
    • Added mdbx_cursor_copy() function.
    • โœ… Extended tests for checking cursor tracking.
    • Added MDBX_SET_LOWERBOUND operation for mdbx_cursor_get().

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fixed missing installation of mdbx.h++.
    • ๐Ÿ›  Fixed use of obsolete __noreturn.
    • ๐Ÿ›  Fixed use of yield instruction on ARM if unsupported.
    • โž• Added pthread workaround for buggy toolchain/cmake/buildroot.
    • ๐Ÿ›  Fixed use of pthread_yield() for non-GLIBC.
    • ๐Ÿ›  Fixed use of RegGetValueA() on Windows 2000/XP.
    • ๐Ÿ›  Fixed use of GetTickCount64() on Windows 2000/XP.
    • ๐Ÿ›  Fixed opening DB on a network shares (in the exclusive mode).
    • ๐Ÿ›  Fixed copy&paste typos.
    • ๐Ÿ›  Fixed minor false-positive GCC warning.
    • Added workaround for broken DEFINE_ENUM_FLAG_OPERATORS from Windows SDK.
    • ๐Ÿ›  Fixed cursor state after multimap/dupsort repeated deletes (#121).
    • Added SIGPIPE suppression for internal thread during mdbx_env_copy().
    • Fixed extra-rare MDBX_KEY_EXIST error during mdbx_commit() (#131).
    • ๐Ÿ›  Fixed spilled pages checking (#126).
    • ๐Ÿ›  Fixed mdbx_load for 'plain text' and without -s name cases (#136).
    • ๐Ÿ›  Fixed save/restore/commit of cursors for nested transactions.
    • ๐Ÿ›  Fixed cursors state in rare/special cases (move next beyond end-of-data, after deletion and so on).
    • โž• Added workaround for MSVC 19.28 (Visual Studio 16.8) (but may still hang during compilation).
    • ๐Ÿ›  Fixed paranoidal Clang C++ UB for bitwise operations with flags defined by enums.
    • ๐Ÿ›  Fixed large pages checking (for compatibility and to avoid false-positive errors from mdbx_chk).
    • โž• Added workaround for Wine (miranda-ng/miranda-ng#1209).
    • Fixed ERROR_NOT_SUPPORTED while opening DB by UNC pathnames (miranda-ng/miranda-ng#2627).
    • Added handling EXCEPTION_POSSIBLE_DEADLOCK condition for Windows.

    TODO for v0.9.3

    • Engage new terminology (#137).
    • ๐Ÿ”€ Rework/speedup the implementation of the dirty page list (lazy compactification, lazy sorting via merge).
    • Resolve few TODOs (#123, #124, #127, #128, #132, #115).
    • โœ๏ธ Finalize C++ API (few typos and trivia bugs are still likely for now).
    • ๐Ÿง Packages for ROSA Linux, ALT Linux, Fedora/RHEL, Debian/Ubuntu.

    SHA256 checksums

    c35cc53d66d74ebfc86e39441ba26276541ac7892bf91dba1e70c83665a02767 libmdbx-amalgamated-0.9.2.tar.gz
    82523330f701939325ce96becace35ec739d30f8e98ec776c4d50bc8745297a8 libmdbx-amalgamated-0_9_2.zip
    a98382d85a06a551393a89152a50c53fd45abf6bf9f5e01e594bbd799c1352c7 v0.9.2.tar.gz
    099b31eef060bd41c35221ba2c805571d173b936075da9a97fcaf4801c8c2ecf v0.9.2.zip
    
  • v0.9.1 Changes

    September 30, 2020

    โž• Added features:

    • ๐Ÿ‘ Preliminary C++ API with support for C++17 polymorphic allocators.
    • Online C++ API reference by Doxygen.
    • โšก๏ธ Quick reference for Insert/Update/Delete operations.
    • ๐Ÿ”€ Explicit MDBX_SYNC_DURABLE to sync modes for API clarity.
    • Explicit MDBX_ALLDUPS and MDBX_UPSERT for API clarity.
    • Support for read transactions preparation (MDBX_TXN_RDONLY_PREPARE flag).
    • Support for cursor preparation/(pre)allocation and reusing (mdbx_cursor_create() and mdbx_cursor_bind() functions).
    • ๐Ÿ‘Œ Support for checking database using specified meta-page (see mdbx_chk -h).
    • ๐Ÿ‘Œ Support for turn to the specific meta-page after checking (see mdbx_chk -h).
    • ๐Ÿ‘Œ Support for explicit reader threads (de)registration.
    • The mdbx_txn_break() function to explicitly mark a transaction as broken.
    • Improved handling of corrupted databases by mdbx_chk utility and mdbx_walk_tree() function.
    • ๐Ÿ‘Œ Improved DB corruption detection by checking parent-page-txnid.
    • ๐Ÿ‘Œ Improved opening large DB (> 4Gb) from 32-bit code.
    • Provided pure-function and const-function attributes to C API.
    • ๐Ÿ‘Œ Support for user-settable context for transactions & cursors.
    • ๐Ÿ“š Revised API and documentation related to Handle-Slow-Readers callback feature.

    ๐Ÿ—„ Deprecated functions and flags:

    • ๐Ÿ—„ For clarity and API simplification the MDBX_MAPASYNC flag is deprecated.
      Just use MDBX_SAFE_NOSYNC or MDBX_UTTERLY_NOSYNC instead of it.
    • MDBX_oom_func, mdbx_env_set_oomfunc() and mdbx_env_get_oomfunc()
      replaced with MDBX_hsr_func, mdbx_env_get_hsr and mdbx_env_get_hsr().

    ๐Ÿ›  Fixes:

    • Fix mdbx_strerror() for MDBX_BUSY error (no error description is returned).
    • ๐Ÿ›  Fix update internal meta-geo information in read-only mode (EACCESS or EBADFD error).
    • Fix mdbx_page_get() null-defer when DB corrupted (crash by SIGSEGV).
    • Fix mdbx_env_open() for re-opening after non-fatal errors (mdbx_chk unexpected failures).
    • โ†ช Workaround for MSVC 19.27 static_assert() bug.
    • Doxygen descriptions and refinement.
    • โšก๏ธ Update Valgrind's suppressions.
    • โœ… Workaround to avoid infinite loop of 'nested' testcase on MIPS under QEMU.
    • ๐Ÿ›  Fix a lot of typos & spelling (Thanks to Josh Soref for PR).
    • ๐Ÿ›  Fix getopt() messages for Windows (Thanks to Andrey Sporaw for reporting).
    • ๐Ÿ›  Fix MSVC compiler version requirements (Thanks to Andrey Sporaw for reporting).
    • ๐Ÿ— Workarounds for QEMU's bugs to run tests for cross-builded library under QEMU.
    • ๐Ÿ— Now C++ compiler optional for building by CMake.

    TODO for next version(s):

    • ๐Ÿ”€ Rework/speedup the implementation of the dirty page list (lazy compactification, lazy sorting via merge).
    • โœ๏ธ Finalize C++ API (few typos and trivia bugs are likely for now).
    • ๐Ÿง Packages for ROSA Linux, ALT Linux, Fedora/RHEL, Debian/Ubuntu.
  • v0.9.0 Changes

    July 30, 2020

    โž• Added features:

    • Online C API reference by Doxygen.
    • Separated enums for environment, sub-databases, transactions, copying and data-update flags.

    ๐Ÿ—„ Deprecated functions and flags:

    • Usage of custom comparators and the mdbx_dbi_open_ex() are deprecated, since such databases couldn't be checked by the mdbx_chk utility. Please use the value-to-key functions to provide keys that are compatible with the built-in libmdbx comparators.
  • v0.8.2 Changes

    July 06, 2020
    • โž• Added support multi-opening the same DB in a process with SysV locking (BSD).
    • ๐Ÿ›  Fixed warnings & minors for LCC compiler (E2K).
    • Enabled to simultaneously open the same database from processes with and without the MDBX_WRITEMAP option.
    • Added key-to-value, mdbx_get_keycmp() and mdbx_get_datacmp() functions (helpful to avoid using custom comparators).
    • โž• Added ENABLE_UBSAN CMake option to enabling the UndefinedBehaviorSanitizer from GCC/CLANG.
    • ๐Ÿ› Workaround for CLANG bug https://bugs.llvm.org/show_bug.cgi?id=43275.
    • Returning MDBX_CORRUPTED in case all meta-pages are weak and no other error.
    • Refined mode bits while auto-creating LCK-file.
    • Avoids unnecessary database file re-mapping in case geometry changed by another process(es). From the user's point of view, the MDBX_UNABLE_EXTEND_MAPSIZE error will now be returned less frequently and only when using the DB in the current process really requires it to be reopened.
    • Remapping on-the-fly and of the database file was implemented. Now remapping with a change of address is performed automatically if there are no dependent readers in the current process.
  • v0.8.1 Changes

    June 12, 2020
    • ๐Ÿš€ Minor change versioning. The last number in the version now means the number of commits since last release/tag.
    • Provide ChangeLog file.
    • ๐Ÿ›  Fix for using libmdbx as a C-only sub-project with CMake.
    • Fix mdbx_env_set_geometry() for case it is called from an opened environment outside of a write transaction.
    • Add support for huge transactions and MDBX_HUGE_TRANSACTIONS build-option (default OFF).
    • Refine LTO (link time optimization) for clang.
    • ๐Ÿ‘ฎ Force enabling exceptions handling for MSVC (/EHsc option).
  • v0.8.0 Changes

    June 05, 2020
    • ๐Ÿ‘Œ Support for Android/Bionic.
    • ๐Ÿ‘Œ Support for iOS.
    • Auto-handling MDBX_NOSUBDIR while opening for any exists database.
    • ๐Ÿš€ Engage github-actions to make release-assets.
    • Clarify API description.
    • โœ… Extended keygen-cases in stochastic test.
    • ๐Ÿ›  Fix fetching of first/lower key from LEAF2-page during page merge.
    • ๐Ÿ›  Fix missing comma in array of error messages.
    • ๐Ÿ›  Fix div-by-zero while copy-with-compaction for non-resizeable environment.
    • ๐Ÿ›  Fixes & enhancements for custom-comparators.
    • Fix MDBX_AVOID_CRT option and missing ntdll.def.
    • Fix mdbx_env_close() to work correctly called concurrently from several threads.
    • ๐Ÿ›  Fix null-deref in an ASAN-enabled builds while opening environment with error and/or read-only.
    • ๐Ÿ›  Fix AddressSanitizer errors after closing environment.
    • ๐Ÿ›  Fix/workaround to avoid GCC 10.x pedantic warnings.
    • ๐Ÿ›  Fix using ENODATA for FreeBSD.
    • Avoid invalidation of DBI-handle(s) when it just closing.
    • Avoid using pwritev() for single-writes (up to 10% speedup for some kernels & scenarios).
    • Avoiding MDBX_UTTERLY_NOSYNC as result of flags merge.
    • Add mdbx_dbi_dupsort_depthmask() function.
    • Add MDBX_CP_FORCE_RESIZEABLE option.
    • Add deprecated MDBX_MAP_RESIZED for compatibility.
    • ๐Ÿ— Add MDBX_BUILD_TOOLS option.
    • Refine mdbx_dbi_open_ex() to safe concurrently opening the same handle from difference threads.
    • Truncate clk-file during environment closing. So zero-length lck file indicates that environment was closed properly.
    • ๐Ÿ‘ Refine support for huge transactions with small sizes of database page.
    • ๐Ÿ‘ Extends dump/load to support all MDBX attributes.
    • Avoid upsertion the same key-value data, fix related assertions.
    • Rework min/max length checking for keys & values.
    • Checking the order of keys on all pages during checking.
    • ๐Ÿ‘Œ Support CFLAGS_EXTRA make-option for convenience.
    • Preserve last txnid while copy with compactification.
    • Auto-reset running transaction in mdbx_txn_renew().
    • Automatically abort errored transaction in mdbx_txn_commit().
    • Auto-choose pagesize for a large databases.
    • ๐Ÿ— Rearrange source files, rework build, options-support by CMake.
    • ๐Ÿง Crutch for WSL1 (Windows subsystem for Linux).
    • Refine install/uninstall targets.
    • Refine LTO (link time optimization) for clang.
    • ๐Ÿ‘Œ Support for Valgrind 3.14 and later.
    • โž• Add check-analyzer check-ubsan check-asan check-leak targets to Makefile.
    • โ†ช Minor fix/workaround to avoid UBSAN traps for memcpy(ptr, NULL, 0).
    • โš  Avoid some GCC-analyzer false-positive warnings.