Leonid Yuriev
a66cefb198
mdbx-tools: use ANSI2OEM-versions of mdbx_strerror() for Windows.
...
Change-Id: I15500eec60b20e45c2881499a809a00fb4d661fa
2019-08-30 00:01:38 +03:00
Leonid Yuriev
368b48b41b
mdbx-windows: add mdbx_strerror_ANSI2OEM() and mdbx_strerror_r_ANSI2OEM().
2019-08-30 00:01:38 +03:00
Leonid Yuriev
10ab5dc032
mdbx: refine mdbx_strerror() and mdbx_strerror_r().
...
Change-Id: I47588cea9f281e71d0e6b81a86a50124e55bc3d4
2019-08-30 00:01:38 +03:00
Leonid Yuriev
51e7159f36
mdbx: dynamically discarding unused tail pages of DB file.
...
Change-Id: I1a0eee50cd27de26521e65c9f7ea51a527a0424e
2019-08-30 00:01:38 +03:00
Leonid Yuriev
327e5feb97
mdbx-windows: one more fix build for Windows/SDK pair.
...
Change-Id: Ifa480703b153625d0fa96a15d70bd0c452352cb6
2019-08-29 23:48:51 +03:00
Leonid Yuriev
648f991a5b
mdbx-windows: fix build with modern SDK but for legacy Windows.
...
Change-Id: Ic443815838715be8cc6565d4d7735651af0b58cc
2019-08-29 23:21:22 +03:00
Leonid Yuriev
553def9f0e
mdbx: _MithrilDB_ announcement in the READMEs.
...
This resolves https://github.com/leo-yuriev/libmdbx/issues/57
Change-Id: Ie55510c4dbe1ebbf38a2f78a319b645c06d0c666
2019-08-29 18:39:34 +03:00
Leonid Yuriev
60d6685665
mdbx: fix typo inside mdbx_setup_debug().
...
Change-Id: I1df92033889572cefa6ff6a54ec2cff9d977fc12
2019-08-28 04:56:36 +03:00
Leonid Yuriev
25e20315ae
mdbx: minor fix for MSVC2019.
...
Change-Id: I628049e7c3a653ec3b549c45450677ec5ab883a7
2019-08-28 04:53:03 +03:00
Leonid Yuriev
9ddfa4f9c8
mdbx-windows: use PrefetchVirtualMemory().
2019-08-28 02:35:34 +03:00
Leonid Yuriev
fd0c92927a
mdbx: refine usage of posix_fadvise()madvise()/posix_madvise()/F_RDADVISE.
2019-08-27 21:35:43 +03:00
Leonid Yuriev
8329f5b6a1
mdbx-load: fix backslash escaping (for compatibility with ITS#9068).
...
In fact MDBX not affected by this bug, since a very long time mdbx_dump was fixed to not produce a problematic sequence of backslash.
For compatibility with LMDB after http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=commit;h=5c012bbe033f9bbb273078b07dded59f080d348d
Change-Id: I8ff8e003ae29504605402b937becd4fb37120408
2019-08-27 14:50:19 +03:00
Leonid Yuriev
b3a9b3ca1a
mdbx: avoid refs to mdbx_runtime_flags from tools.
2019-08-27 00:29:15 +03:00
Leonid Yuriev
55ca2f0ed1
mdbx: makes handling NDEBUG option more convenient.
...
Change-Id: Icb8f2ddc66273d4ef4b17f1a27e6a34d2ffadd47
2019-08-26 22:57:14 +03:00
Leonid Yuriev
eb37dad115
mdbx: note about MDBX_AVOID_CRT option in the README.
2019-08-25 22:40:53 +03:00
Leonid Yuriev
5eb3b77efe
mdbx-posix: rework LCK seize/destroy.
2019-08-25 22:40:35 +03:00
Leonid Yuriev
2536dc47ac
mdbx: refine features-macros for xBSD.
2019-08-25 16:04:33 +03:00
Leonid Yuriev
a03c5d1f3f
mdbx-posix: destroys shared mutexes in the last process.
2019-08-25 14:18:06 +03:00
Leonid Yuriev
ed58af2512
mdbx-posix: minor fix mdbx_lck_destroy().
2019-08-25 05:20:58 +03:00
Leonid Yuriev
137d652d77
mdbx: refine attribute-based macros.
2019-08-25 04:37:15 +03:00
Leonid Yuriev
7780b76cf0
mdbx: fix internal typo.
...
Change-Id: Ib31e8f02d816758a66b5e6b260714e25648f66c2
2019-08-25 04:36:30 +03:00
Leonid Yuriev
93f82f47bd
mdbx: refine setup_debug(), add MDBX_DBG_LEGACY_MULTIOPEN.
...
Change-Id: I5d144f6fa27b8f5885fa0a0fbd11fe1d44bcc41c
2019-08-25 04:36:28 +03:00
Leonid Yuriev
33a4f31f92
mdbx: fix reclaiming_detent() for out-of-txn case.
...
Change-Id: I5275f4f3676b125e860f6a7c204a5f9cdc65dd5f
2019-08-23 17:46:33 +03:00
Leonid Yuriev
4ceaf842fe
mdbx: add timed auto-sync feature.
...
Change-Id: Ia9b8529fda321d5f78b306f270d157a78f708916
2019-08-23 13:13:20 +03:00
Leonid Yuriev
68e0076ca3
mdbx: rework auto-sync by volume feature.
...
Change-Id: I0a34a65a974f28c6f0a950c11d55a43cfcfcab22
2019-08-23 12:05:09 +03:00
Leonid Yuriev
6f8238e1e9
mdbx: LCK-format version 3.
...
The LCK file is re-created at every opportunity when the process that
opens the database is the only one that works with it. Thus the change
of the format of the file LCK creates only minimal compatibility
problems.
Applications using different versions of _libmdbx_ will be able to work
with one database alternately, but not at the same time. This appears to
be an acceptable inconvenience in exchange for new features.
Change-Id: I9414b3fffd53d5519c8172c57345b1eaf6e51c77
2019-08-23 03:38:11 +03:00
Leonid Yuriev
de88707946
mdbx: don't shrink DB less largest reader inside mdbx_env_set_geometry().
...
Change-Id: I42a5d3a08313fb9590a6730bc0dc06c7b4f16634
2019-08-23 02:34:54 +03:00
Leonid Yuriev
0c63859459
mdbx: minor refine copy_asis().
...
Change-Id: I5d6240a99cba7e16e39f6466a7e582a068ab746a
2019-08-23 02:34:54 +03:00
Leonid Yuriev
65fd8be9b5
mdbx: fix env_sync_ex() for out-of-txn case.
...
Change-Id: Ie19bbe1d467ce4fc83f8dfc1e367070f532ee335
2019-08-23 02:34:45 +03:00
Leonid Yuriev
9168f8c69d
mdbx: fix NULL-deref bug (Coverity).
...
Change-Id: If48f1780d2887b6c2041effc6ca0f158eddb29c2
2019-08-21 02:07:02 +03:00
Leonid Yuriev
a6155bcf2a
mdbx: update READMEs (build
section).
...
Change-Id: I731737edc594f22f81cbfc080d857caeb31b9f9a
2019-08-21 01:05:57 +03:00
Leonid Yuriev
07aa657b63
mdbx-build: minor refine Makefile.
...
Change-Id: I7aa2cbd30da61ae47216d557a993ee3cca6edab5
2019-08-20 23:35:45 +03:00
Leonid Yuriev
887cbc7f00
mdbx: update README (MacOS support).
...
Change-Id: Id85b79fb605702fff606b62a5114951bfb9cb22e
2019-08-20 15:04:56 +03:00
Leonid Yuriev
e04bfc05fa
mdbx: rename MDBX_OSX_SPEED_INSTEADOF_DURABILITY option.
...
Change-Id: I1d0a05880507da0781ccd2bff5fa68610ad884a9
2019-08-20 15:04:52 +03:00
Leonid Yuriev
6f0a11f155
mdbx: merge branch 'osx-try'.
...
This resolves https://github.com/leo-yuriev/libmdbx/issues/49 .
Change-Id: Ib20c3898e99ca229f10e7d41cda3989b8b4a832c
2019-08-20 03:18:31 +03:00
Leonid Yuriev
657d37c9e3
mdbx: add MDBX_OSX_SPEED_OR_DURABILITY build-time #define for MacOS.
2019-08-20 02:48:30 +03:00
Leonid Yuriev
ccbf3a2bcf
mdbx: rework mdbx_filesync().
2019-08-20 00:56:06 +03:00
Leonid Yuriev
261f697d8c
mdbx: skip msync(MS_ASYNC) on Linux > 2.6.19.
...
Change-Id: Ic1f631ef856a09cf62353c2b0092b0341ecf4fa2
2019-08-19 21:31:23 +03:00
Leonid Yuriev
226cb3ac90
mdbx: use F_FULLFSYNC on MacOS.
2019-08-19 20:41:02 +03:00
Leonid Yuriev
691898d129
mdbx-make: fix so/dll-suffix for MacOS.
2019-08-19 19:10:41 +03:00
Leonid Yuriev
351939dd5d
mdbx-test: reduce number of test-iteration for MacOS.
...
Change-Id: Ic9df6a9ce66ee2cc165e2525953eee998e653932
2019-08-19 16:43:41 +03:00
Leonid Yuriev
32a5b9089b
mdbx-test: extend darwin-pthread-barrier for multiprocess-shared.
2019-08-13 02:44:45 +03:00
Leonid Yuriev
3f64d45819
mdbx-test: initial OSX support.
2019-08-13 02:16:15 +03:00
Leonid Yuriev
054a88c502
mdbx-test: add darwin-pthread-barrier.
...
Import from https://github.com/ademakov/DarwinPthreadBarrier with minor changes.
2019-08-13 02:10:03 +03:00
Leonid Yuriev
91088af935
mdbx: initial OSX support.
2019-08-13 02:10:03 +03:00
Leonid Yuriev
f5a25b8d5e
mdbx-ci: enable OSX build for travis-ci.
...
Change-Id: Ib11e95942b27e131496b0804591f1d5b64cb9272
2019-08-13 02:10:03 +03:00
Leonid Yuriev
dcd4574510
mdbx-build: more Qt-Creator files.
...
Change-Id: Ie65ee47f14a403903c3e1a6dae96c00ff35bac25
2019-08-12 15:55:24 +03:00
Leonid Yuriev
7960f67ea6
mdbx-chk: "backed-pages > file-pages" isn't error in the non-exclusive or read-only modes.
2019-08-12 15:44:15 +03:00
Leonid Yuriev
bceace7a09
mdbx: clarify shrink/grow-related internals.
2019-08-12 15:44:15 +03:00
Leonid Yuriev
5244c1a9c2
mdbx-chk: "backed-pages less filesize" isn't an error on Windows.
...
Change-Id: Iea212a469225b0617221cdf292352eb1f896b4c6
2019-08-12 12:23:02 +03:00