2218 Commits

Author SHA1 Message Date
Leonid Yuriev
bb3d4ab9ba mdbx-ci: build github-pages by doxygen.
Change-Id: I9d84ca299cf0b8579157f84dae42fcbb09a6f8bc
2020-07-23 11:58:04 +03:00
Leonid Yuriev
e3efef40c4 mdbx: initial support for doxygen.
Change-Id: I5258b9f5dac981f03658ed35a799a52250a3e136
2020-07-23 11:58:04 +03:00
Leonid Yuriev
19e4fc1414 mdbx: minor fix .gitignore
Change-Id: I3b54830fed6ba161bfb631e6989f616df106450d
2020-07-23 11:58:04 +03:00
Leonid Yuriev
3d31884c3b mdbx-chk: always skip key ordering checking to avoid MDBX_CORRUPTED when using custom comparators.
Change-Id: Ieb6ea4a1c36b0e661afc13da365505ffbb5d0b5e
2020-07-23 11:47:05 +03:00
Leonid Yuriev
b6085afb5a mdbx-test: minor fix for MSVC-2015.
Change-Id: I631009ffe0b04428026492d1cab691b58fdd160a
2020-07-08 03:13:07 +03:00
Leonid Yuriev
9720ed39f5 mdbx: using enum instead of #define for flags/modes.
Resolve https://github.com/erthink/libmdbx/issues/108

Change-Id: I45897300375d2b5b9361aaba81dadcf9801fe3cf
2020-07-08 02:26:46 +03:00
Leonid Yuriev
2e0d2e65af mdbx: fix minor typos. 2020-07-07 23:16:43 +03:00
Leonid Yuriev
e989cb05ed mdbx: deprecate mdbx_dbi_open_ex() and custom comparators.
Change-Id: I1d20f77b9ba5d8d5ec891df17019377afb466b06
2020-07-07 19:33:59 +03:00
Leonid Yuriev
fab6ddee14 mdbx: add MDBX_DEPRECATED macro.
Change-Id: I87e14b37a6d152fa1f69f4a74e16244870dedb0f
2020-07-07 19:33:17 +03:00
Leonid Yuriev
e34e58f529 mdbx: reformat ChangeLog (cosmetics).
Change-Id: Ida9e18a512604c3fff8d3d88558020f694e740b0
2020-07-07 00:38:27 +03:00
Leonid Yuriev
fc9ae9ebc6 mdbx: bump version to 0.8.2
Change-Id: I99ace837318d3aef4086392272c8256d966ef2fd
v0.8.2
2020-07-06 16:37:35 +03:00
Leonid Yuriev
3351c1f869 mdbx: implements remapping of the database file when it it possible.
Change-Id: Ida15ba1f396a33b2c6063e680dff612f39a9608f
2020-07-06 16:23:52 +03:00
Leonid Yuriev
2d0a5c42a9 mdbx: avoids unnecessary remap in case geometry changed concurrently by another process(es).
Change-Id: Ibf3a90bc79b1e8e0fa752dabc21b129a697c08d4
2020-07-06 14:35:41 +03:00
Leonid Yuriev
5dbb0b4cfe mdbx: rename internal flags & fields for clarity.
Change-Id: I79d6d8e88b0b4c30cbb8a464ca17f07dc2ab44c6
2020-07-06 14:35:41 +03:00
Leonid Yuriev
0fb127b935 mdbx-test: add --random-writemap[=YES|no] option.
Change-Id: Ie83f64d4a7e199f828540f029c2c47deddb05c01
2020-07-06 14:35:41 +03:00
Leonid Yuriev
6439a95b65 mdbx: update changelog.
Change-Id: I6b88bbe002449b5345d303824843903cfb8bc503
2020-07-06 14:35:41 +03:00
Leonid Yuriev
01373aa3a6 mdbx: minor README fixes.
Change-Id: Ib49a2eea78043274ab96e0b7ad78241ad38bb432
2020-07-05 00:34:32 +03:00
Leonid Yuriev
c22749a630 mdbx: add TODO for auto-recovery.
Change-Id: I7d5fd83a2fdeaec0501ba0339bbe865d06356bad
2020-07-05 00:34:32 +03:00
Leonid Yuriev
e6f5998b76 mdbx: refine mode bits while auto-creating LCK-file.
Change-Id: Ideb603cf6a1709188b3c121a9d6bf2097b9c244d
2020-07-05 00:34:32 +03:00
Leonid Yuriev
e6eeed6cf2 mdbx: return MDBX_CORRUPTED in case all meta-pages are weak and no other error.
Change-Id: I38c85738d8ccdb87856fa1a6e989ddaf75109722
2020-07-05 00:34:32 +03:00
Leonid Yuriev
5a25c7c5fb mdbx: fix __pure_function & __const_function for CLANG & C++ exceptions.
This is crutch for https://bugs.llvm.org/show_bug.cgi?id=43275

Change-Id: I6d29456cd83f8e713a5b1f6b50ac721bf985148f
2020-07-05 00:34:23 +03:00
Leonid Yuriev
500fed496c mdbx-cmake: add ENABLE_UBSAN option.
Change-Id: Ic4333f28aa6494be24c7be1f396bd069dcb9bb5d
2020-07-03 01:55:42 +03:00
Leonid Yuriev
2ee45b1820 mdbx-test: using std::atomic<> instead of sig_atomic_t.
Change-Id: I37d0c2768ec54ddd3c529d4b9a29f66df6ca265e
2020-06-26 03:33:53 +03:00
Leonid Yuriev
95199c754a mdbx-cmake: fixes for old C/C++ compilers and/or CMake. 2020-06-26 03:28:15 +03:00
Leonid Yuriev
505ee31635 mdbx: add __fallthrough workaround for LCC.
Related to https://bugs.mcst.ru/bugzilla/show_bug.cgi?id=5093
2020-06-26 03:28:15 +03:00
Leonid Yuriev
eec7b87288 mdbx-ci: fix appveyor build-version (cosmetics).
Change-Id: I42a612d6139285994b911d1747efea3861183733
2020-06-26 03:22:47 +03:00
Leonid Yuriev
0afc21eed9 mdbx: add mdbx_get_keycmp() & mdbx_get_datacmp().
Change-Id: I11f8a54f7eb21b0bab575c8f6b89081b7eaf1bb8
2020-06-24 17:15:56 +03:00
Leonid Yuriev
428f753c03 mdbx: add key-to-value functions.
Change-Id: Ie0acd8c58833047931444fd9d94d5b82e6d541bb
2020-06-24 17:15:56 +03:00
Leonid Yuriev
63bf01a60a mdbx-cmake: fix for e2k-lcc 1.24
Change-Id: I5827d4a2526886ae37ad6fe342d5955594081b84
2020-06-22 03:18:54 +03:00
Leonid Yuriev
0fc2d39cce mdbx: allow mixind with/without MDBX_WRITEMAP for the same database.
Change-Id: I916bb9e9b44a58cf78786e76a8c42d62e0bfc579
2020-06-20 23:55:15 +03:00
Leonid Yuriev
171a254425 mdbx-test: use banner tool only when available.
Change-Id: I4b9bffffc69e664fbca8346312934534ad7579e7
2020-06-20 19:03:10 +03:00
Leonid Yuriev
cba048ad8a mdbx: minor refine README.
Change-Id: Ib4c20c6b5cadd5e72ae54984909150b4408c68a6
2020-06-20 18:55:21 +03:00
Leonid Yuriev
100832b677 mdbx-make: minor fix for lcc/E2K compiler.
Change-Id: I32018f915e3ef4758cc65bb3c5d73a209a0edb53
2020-06-17 16:17:38 +00:00
Leonid Yuriev
35313d18bc mdbx-posix: refine mdbx_lck_init(), allow multi-opending with MDBX_LOCKING_SYSV. 2020-06-15 12:51:35 +03:00
Leonid Yuriev
0bb950ad55 mdbx: provide ChangeLog.
Change-Id: I1fce6d48c8f5cbef5ecf1e932cbd9c7dff58462d
v0.8.1
2020-06-13 03:07:15 +03:00
Leonid Yuriev
4884cd2bcd mdbx: tally revision number since the last release, not from an epoch.
Change-Id: I623b2a57bfe4e1a242d1d68350001ebadef3d634
2020-06-13 03:06:20 +03:00
Leonid Yuriev
cda94ee61d mdbx-cmake: update/sync compiler module (clang LTO, exceptions for MSVC).
Change-Id: Ic132d4cb4095a141436599047b80f8a0b8ac4f6b
2020-06-13 03:06:20 +03:00
Leonid Yuriev
e008f3132d mdbx: support for huge transactions (MDBX_HUGE_TRANSACTIONS option).
Change-Id: I5d6cce6a7fb816add8cb4c066cc50f31cdebf9d5
2020-06-13 03:06:20 +03:00
Leonid Yuriev
fdc92b136f mdbx-cmake: avoid using check_cxx_source_compiles().
More for https://github.com/erthink/libmdbx/issues/111

Change-Id: Icbe1fb3c4ed8e22da7fa7e95d2c8f2c302e77d82
2020-06-12 12:05:27 +03:00
Leonid Yuriev
753cd8fec1 mdbx-cmake: fix using check_cxx_compiler_flag() when C++ compiler don't used/loaded.
Fixes https://github.com/erthink/libmdbx/issues/111

Change-Id: I53cfff2627469e857dcdfc303de4bb1c8ba4e82b
2020-06-12 11:56:38 +03:00
Leonid Yuriev
7ab9d24d3b mdbx: fix env_set_geometry() for opened-env + outside-txn case.
Change-Id: I4526aa8011895ef7b5529995503966117c37e107
2020-06-08 19:12:12 +03:00
Leonid Yuriev
03cc19babb mdbx: preserve error from env_set_geometry() inside setup_dxb().
Change-Id: I8dae0b38eb09cfaa07cdd80cb37dc414e2f99d7a
2020-06-08 19:12:12 +03:00
Leonid Yuriev
0aef609dad mdbx-doc: one more fix about HyperThreading in read-scalability benchmark.
In continue 1c4653d4661e4dc6db38ffb9c933c556a527bb20

Change-Id: I886624359ccd4f5832f82d7aa2fff352962e708d
2020-06-06 16:31:12 +03:00
Leonid Yuriev
0117473cbc mdbx: bump version to 0.8.x
Change-Id: I6d2a1a3b04341461288e18c66d11e79d343750b0
v0.8.0
2020-06-05 03:00:43 +03:00
Leonid Yuriev
21fba6577a mdbx-test: fix clang/glibcxx incompatibility.
Change-Id: I59c4f486431126396dc59a84914d78e0eeff1f4c
2020-06-04 19:57:07 +03:00
Leonid Yuriev
0fb2e4e4cc mdbx-ci: engage github-actions to make release-assets.
Resolves https://github.com/erthink/libmdbx/issues/86

Change-Id: I87417c03bf0d657ece47a59aabbd3cb5bfaa81ec
2020-06-04 17:13:42 +03:00
Leonid Yuriev
5c322ed6cf mdbx-make: fix '-std=c++17' typo.
Change-Id: Ibdc888ba4a2b005080ce4ac47a521ea8bcbd9e0a
2020-06-04 16:59:43 +03:00
Leonid Yuriev
f5066996b8 mdbx-doc: clarify mdbx_cursor_put() description.
Fixes https://github.com/erthink/libmdbx/issues/110.

Change-Id: Ieaeae763661d42ac333e2c12cdc141d01e719a54
2020-06-04 13:37:35 +03:00
Leonid Yuriev
44be200e28 mdbx-doc: clarify mdbx_del() and mdbx_cursor_del() description.
Related to https://github.com/erthink/libmdbx/issues/109.

Change-Id: I810597f8a1217db3a16cc7c3de3822218ab7d055
2020-06-04 13:37:30 +03:00
Leonid Yuriev
97b4679ca8 mdbx-doc: clarify MDBX_GET_BOTH_RANGE description.
Related to https://github.com/erthink/libmdbx/issues/109.

Change-Id: Id4026121128699ba8141bed9a7c577ce52635da3
2020-06-04 12:48:20 +03:00