Leonid Yuriev
5413407f23
mdbx-test: backport - fix dbsize-options handling.
...
Change-Id: Ia51f802ac1ad4e8b1b059a3f3b38214bda6b43fc
2019-06-24 02:45:05 +03:00
Leonid Yuriev
ebc8e9935e
mdbx: bump version to v0.1.7
...
Change-Id: I0f72ed31fbd1ed74a875c2aa2023521855e72894
2019-06-22 23:31:10 +03:00
Leonid Yuriev
26838a2164
mdbx: rework RECLAIMING inside update_gc().
...
Change-Id: I9cf592476780bfdb346472baa12497d68a3d5aad
2019-06-22 23:31:05 +03:00
Howard Chu
828889de5c
mdbx: import - tweak mdb_page_split (ITS#8969).
...
Bump up number of keys for which we use fine-grained splitpoint search
Change-Id: Icca2e1953cbcd6898b790f657636c2195b397790
2019-06-22 15:50:28 +03:00
Leonid Yuriev
6c160d02af
mdbx: backport - fix TAGRET typo (minor).
...
Change-Id: Iffafbed7fdad3492aeb51f17caf8109a5b3e35c0
2019-06-22 01:48:12 +03:00
Leonid Yuriev
fead1c3853
mdbx: backport - fix handling MDBX_APPENDDUP mode.
...
Change-Id: I36de2a8dcab5126dab3857a7840ab3904a1d19c8
2019-06-22 01:48:12 +03:00
Leo Yuriev
06c35dd59c
mdbx: backport - fix __ANDROID__ typo.
...
Thank to Howard Chu <hyc@openldap.org>.
Change-Id: Ibcbe2e4790a5df5758d9fd6c621793ea42a94682
2019-06-22 01:48:12 +03:00
Leonid Yuriev
46eb178f07
mdbx: backport - fix GC corruption due deep recursive rebalance from update_gc().
...
Change-Id: I810250deb25cd625e737000282b434e3158ef8cc
2019-06-22 01:32:47 +03:00
Leo Yuriev
b1ffe87556
mdbx: fix one more comment typo (minor).
2019-02-13 20:27:20 +03:00
Leo Yuriev
131485e516
mdbx: fix comment typo (minor).
2019-02-13 20:27:14 +03:00
Leo Yuriev
64f6648d0c
mdbx: make API compatible to the master branch.
...
Change-Id: I95c5db639cebe4bba9c600f97c9966082bc9bc09
2019-02-03 13:17:43 +03:00
Leonid Yuriev
ba00b597a7
mdbx-windows: backport - fix returning negative value on failure.
...
Change-Id: Iaf5fb1f0cbcc3c14e2d3edf1f57538ecc0dfdf00
2019-02-03 13:17:43 +03:00
Leo Yuriev
4f79e3756c
mdbx: 2019 HNY.
...
Change-Id: Iec6b7affedef0ea89fad917eb17af7e8201a7482
2019-02-03 13:17:43 +03:00
Leo Yuriev
f183cef7d7
mdbx-windows: backport - always susppend local threads while resize DB (workaround for Windows kernel bug).
...
We should not concern about performance on Windows platform,
it just unreasonable. Therefore just always suspend the local
threads to avoid this issue.
This resolves https://github.com/leo-yuriev/libmdbx/issues/48
Change-Id: I6e652692794b8c4c0d41625be62f2051b63c033a
2018-11-22 22:39:04 +03:00
Leonid Yuriev
850fe8408e
mdbx: backport - relax DBI-sequences for concurrent open DBI-handles for present tables.
...
Change-Id: I7f07d2e716074bd9c2847aeb062e366f46cca214
2018-11-20 14:29:20 +03:00
Leonid Yuriev
0043f62a43
mdbx: backport - silently put mm_geo.now into [geo.lower...geo.upper] boundaries.
...
Copy-with-compaction by previous version of libmfbx could produce
DB-file less than meta.geo.lower bound, in case actual filling
is low or no data at all.
This is not a problem as there is no damage or loss of data.
Therefore it is better not to consider such situation as an
error, but silently correct it.
Change-Id: Ia662656cc3584c07efcfbdfc80f80e3c76e6dd59
2018-11-05 14:35:24 +03:00
Leonid Yuriev
de8d0479ab
mdbx: backport - fix typo in mdbx_limits_dbsize_max().
...
Change-Id: Ie55e3ca108ac6aab9a41d65f316a3d5ff5ff6f1f
2018-11-05 02:16:29 +03:00
Leo Yuriev
feab109c61
mdbx-test: backport - fix osal_actor_poll() for 32-bit builds.
...
Change-Id: I36b2f955295d8ca5435a68737c0c2e7f069bfe34
2018-11-05 02:16:24 +03:00
Leonid Yuriev
6120c2be0a
mdbx-test: backport - add checks for db-copy
after the basic
testcase.
...
Change-Id: I5e7d343266c66418a8798d272e697e1c3d5c775b
2018-11-05 02:16:19 +03:00
Leonid Yuriev
ee0c8bb249
mdbx: backport - add db-copy testcase.
...
Change-Id: Ib554880ebbabcb5dfc55bdb3c71767d0fa1630fd
2018-11-05 02:16:13 +03:00
Leonid Yuriev
3d59c9f9e7
mdbx: backport - take in account shrink/growing thresholds while copy-with-compactification.
...
Change-Id: Id93e62089819dfcc8cbc83620e0bdd806d8c1950
2018-11-05 02:16:07 +03:00
Leonid Yuriev
86e63f0b6b
mdbx: backport - refine mdbx_env_copy() internals (required for next patch).
...
Change-Id: I9e8f0dc87398564524a5ec98eda2cb9bde100909
2018-11-05 02:16:07 +03:00
Leonid Yuriev
affd28654c
mdbx: backport - fix mdbx_txn_abort().
...
This resolves https://github.com/leo-yuriev/libfpta/issues/20
Change-Id: I43c0c960d5c871d837b307cd370ee7327db01ff6
2018-10-22 01:45:45 +03:00
Leonid Yuriev
08130df595
mdbx-windows: backport - workaround for Windows10 bugs.
...
This resolves https://github.com/leo-yuriev/libmdbx/issues/47
Change-Id: I6e0d6dfbfec15b68200438b68a2996c357d46b77
2018-10-22 01:45:28 +03:00
Leonid Yuriev
5acf2b126f
mdbx: backport - fix mdbx_dbi_sequence().
...
Change-Id: Ic620896ef42c1c2d85c07c146b72e773ab43a67d
2018-10-22 01:40:59 +03:00
Leonid Yuriev
cc84f85722
mdbx-ci: backport - disable CI for old MSVC compilers.
...
Change-Id: Ia1072745664d9a97d4114149a305a6399bde71aa
2018-10-22 01:37:29 +03:00
moneromooo-monero
a3aa2b5a57
mdbx-doc: import - mdb_cursor_del does not invalidate the cursor (ITS#8857).
v0.1.6
2018-09-24 19:35:39 +03:00
Howard Chu
02276500c9
mdbx-doc: import - GET_MULTIPLE etc don't return the key (ITS#8908).
...
Unnecessary since these are DUPs, the key will always be the same
2018-09-24 19:35:36 +03:00
Leonid Yuriev
de44ecccd1
mdbx: backport - update MAX_PAGENO and MAX_MAPSIZE64.
2018-09-23 18:07:29 +03:00
Leonid Yuriev
5049c86517
mdbx: backport - avoid empty and unneeded large/overflow pages (squashed).
2018-09-23 18:07:29 +03:00
Leonid Yuriev
d2854e0760
mdbx: backport - refine mdbx_chk (squashed).
...
- refine 'mismatch idl length' error message.
- add/fix printf-format checking.
- refine dbi-structure.
2018-09-23 18:07:29 +03:00
Leonid Yuriev
5a29214ad9
mdbx-test: backport - update 'gc.sh' script (squashed).
2018-09-23 15:39:56 +03:00
Leonid Yuriev
b51d92d449
mdbx-test: backport - update test (squashed).
...
- add support for 'default' options values.
- add min/max cases for option values.
- add support for db-geometry params.
- fix int-types for 32-bit builds (minor).
- fix key/value generation for long-length cases.
- fix update_flags for non-MDBX_DUPSORT.
- 'none' for config-verbs.
- check commandline length under Windows.
- workaround for QueryFullProcessImageNameA() bug.
- add setloglevel().
- workaroung for MSVC bug.
- avoid extra 'jitter' testcase loops.
- cleanup DUPSORT flags.
- refine key/value min/max handling.
- dump keygen params.
- fix/refine keygen.
- alter keygen defaults (rotate 3, offset 41).
- default test-db size 4mb or 256mb.
- fix/refine keygen for non-MDBX_DUPSORT.
- seeding keygen with actor_id for better spreading.
2018-09-23 15:39:56 +03:00
Leonid Yuriev
6da477d37f
mdbx-ci: backport - refines for Windows (squashed).
...
- push logs to appveyor separately.
- rename 'test.exe' to 'mdbx_test.exe'.
- add test.db to appveyor artefacts (windows).
2018-09-23 15:39:56 +03:00
Leonid Yuriev
6150a8c903
mdbx: backport - fix/refine mdbx_update_gc() (squashed).
2018-09-23 15:39:56 +03:00
Leonid Yuriev
f3e9731da4
mdbx: backport - move macros/inlines to fix Windows builds.
...
Change-Id: I48aaf6b77466bb8b13294b84de73fb6063c88190
2018-09-23 15:39:56 +03:00
Leonid Yuriev
353b6b8af0
mdbx: backport - refine assections (minor).
...
Change-Id: Ic924988b8ce043d6106df381c996dd2c8ff9ca1f
2018-09-23 15:39:56 +03:00
Leonid Yuriev
3f10e58df2
mdbx: backport - re-define assert macro via mdbx_assert.
...
Change-Id: I317801ba4200bdf1aa5cacf75d21a8e633fbc48a
2018-09-23 15:39:56 +03:00
Leonid Yuriev
d232737087
mdbx: backport - add MDBX_FORCE_ASSERT.
...
Change-Id: I68a9f7b42663ea157c7c0a5a58797c94127b45ed
2018-09-23 15:39:56 +03:00
Leo Yuriev
e32ca55258
mdbx: backport - fix tracking around mdbx_cursor_del().
2018-09-23 15:39:56 +03:00
Leonid Yuriev
f57ffc987c
mdbx: backport - drop inherited broken audit (will be fixed in the master branch).
...
Internal self-audit (inherited from LMDB) is invalid and useless
for sub-db and dupsort cases.
2018-09-23 15:39:56 +03:00
Leonid Yuriev
cdd510d20e
mdbx: backport - prevent DB corruption due rebalance bugs.
...
Won't fix https://github.com/leo-yuriev/libmdbx/issues/38 in the 'stable/0.1' branch,
but add checks to prevent DB corruption.
2018-09-23 15:39:56 +03:00
Leo Yuriev
d757ba1266
mdbx: backport - fix MDBX_CORRUPTED due open/shrink collision.
2018-09-23 15:39:56 +03:00
Leonid Yuriev
337f7589f8
mdbx: backport - fix mdbx_pnl_search().
2018-09-23 15:39:56 +03:00
Leonid Yuriev
912728a322
mdbx: backport - fix mdbx_replace().
...
Change-Id: I2af00f101017795ca2b967479f86e5ea7e8ad37b
2018-09-23 15:39:56 +03:00
Leonid Yuriev
204b5a532d
mdbx: backport - shorten maxkeysize (will be fixed in the master branch).
...
Change-Id: I660b1b3e454d9b51a24d3b4cc987c8e2980bd435
2018-09-23 15:39:56 +03:00
Leonid Yuriev
014be165c3
mdbx: backport - allow GC's PNL be partially unused.
2018-09-23 15:39:56 +03:00
Leonid Yuriev
a9244f807b
mdbx: backport - setup mdbx_cmp_memn() as data-comparator for safety.
2018-09-23 15:39:56 +03:00
Leonid Yuriev
6d438605dd
mdbx: backport - check comparator for MDBX_GET_BOTH and MDBX_GET_BOTH_RANGE.
2018-09-23 15:39:56 +03:00
Leo Yuriev
34300150a1
mdbx: backport - don't touch mm_psize
and mm_flags
while provoking bad readers (debug-only).
2018-09-23 15:39:56 +03:00