All Versions
Latest Version
Avg Release Cycle
40 days
Latest Release
98 days ago

Changelog History
Page 1

  • v0.9.2

    November 27, 2020


    โž• 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
    a98382d85a06a551393a89152a50c53fd45abf6bf9f5e01e594bbd799c1352c7 v0.9.2.tar.gz
  • v0.9.1

    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

    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

    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
    • 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

    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

    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 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.
  • v0.7.0

    March 18, 2020

    ๐Ÿ›  Notable fixes, improvements and changes since v0.4.0:

    โ†ช 1. Workarounds for Wine.

    Now libmdbx working under Wine, but without on-the-fly database size adjustment due to Wine internal limitations and unimplemented functions, i.e. the MDBX_UNABLE_EXTEND_MAPSIZE error will be returned.

    1. MDBX_MAP_RESIZED renamed to MDBX_UNABLE_EXTEND_MAPSIZE. โœ๏ธ 3. Clarify API description & comments, fix typos. ๐Ÿ— 4. Speedup runtime checks in debug/checked builds.
    2. Added checking for read/write transactions overlapping for the same thread, added MDBX_TXN_OVERLAPPING error and MDBX_DBG_LEGACY_OVERLAP option.
    3. Added mdbx_key_from_jsonInteger(), mdbx_key_from_double(), mdbx_key_from_float(), mdbx_key_from_int64() and mdbx_key_from_int32() functions. See mdbx.h for description.
    4. Fix mdbx_load utility for custom comparators.
    5. Fix checks related to MDBX_APPEND flag inside mdbx_cursor_put().
    6. Fix mdbx_env_set_geometry() for large page size.
    7. Fix false-positive ASAN issue.
    8. Fix assertion for MDBX_NOTLS option.
    9. Fix mdbx_chk utility for don't checking some numbers if walking of B-tree was disabled.
    10. Added install section to CMakeLists.txt.
    11. Rework MDBX_DBG_DUMP option to avoid disk I/O performance degradation.
    12. Interpret ERROR_ACCESS_DENIED from OpenProcess() as 'process exists'.
  • v0.6.0

    January 20, 2020
    • ๐Ÿ›  Fix mdbx_load utility for custom comparators.
    • Fix checks related to MDBX_APPEND flag inside mdbx_cursor_put().
    • Refine/fix dbi_bind() internals.
    • Refine/fix handling STATUS_CONFLICTING_ADDRESSES.
    • Rework MDBX_DBG_DUMP option to avoid disk I/O performance degradation.
    • โž• Add built-in help to test tool.
    • Fix mdbx_env_set_geometry() for large page size.
    • Fix env_set_geometry() for large pagesize.
    • โœ๏ธ Clarify API description & comments, fix typos.
  • v0.5.0

    December 31, 2019
    • Fix returning MDBX_RESULT_TRUE from page_alloc().
    • ๐Ÿ›  Fix false-positive ASAN issue.
    • ๐Ÿ›  Fix assertion for MDBX_NOTLS option.
    • Rework MADV_DONTNEED threshold.
    • ๐Ÿ›  Fix mdbx_chk utility for don't checking some numbers if walking on the B-tree was disabled.
    • ๐Ÿ‘‰ Use page's mp_txnid for basic integrity checking.
    • ๐Ÿ‘ฎ Add MDBX_FORCE_ASSERTIONS built-time option.
    • Rework MDBX_DBG_DUMP to avoid performance degradation.
    • Rename MDBX_NOSYNC to MDBX_SAFE_NOSYNC for clarity.
    • Interpret ERROR_ACCESS_DENIED from OpenProcess() as 'process exists'.
    • Avoid using FILE_FLAG_NO_BUFFERING for compatibility with small database pages.
    • โž• Added install section for CMake.
  • v0.4.0

    December 07, 2019
    • ๐Ÿ‘Œ Support for Mac OSX, FreeBSD, NetBSD, OpenBSD, DragonFly BSD, OpenSolaris, OpenIndiana (AIX and HP-UX pending).
    • โช Use bootid for decisions of rollback.
    • Counting retired pages and extended transaction info.
    • โž• Add MDBX_ACCEDE flag for database opening.
    • Using OFD-locks and tracking for in-process multi-opening.
    • Hot backup into pipe.
    • ๐Ÿ‘Œ Support for cmake & amalgamated sources.
    • โœ… Fastest internal sort implementation.
    • ๐Ÿ†• New internal dirty-list implementation with lazy sorting.
    • ๐Ÿ‘Œ Support for lazy-sync-to-disk with polling.
    • Extended key length.
    • โšก๏ธ Last update transaction number for each sub-database.
    • Automatic read ahead enabling/disabling.
    • More auto-compactification.
    • Using -fsanitize=undefined and -Wpedantic options.
    • ๐Ÿ”€ Rework page merging.
    • Nested transactions.
    • API description.
    • Checking for non-local filesystems to avoid DB corruption.