Leonid Yuriev
|
5ae120af80
|
mdbx-windows: more crutches for MinGW.
More for https://github.com/erthink/libmdbx/issues/155
Change-Id: I7de6122ff160372b2dcfd2a0a26e332cb52d0560
|
2021-05-08 18:38:44 +03:00 |
|
Leonid Yuriev
|
ab1fc94a5b
|
mdbx-windows: fix build for Windows XP/2000 (_WIN32_WINNT < 0x0600).
Related to https://github.com/erthink/libmdbx/issues/155
Change-Id: Ibd795817e05b6da39ef270ce7b55b31d963d07b0
|
2021-05-08 18:38:26 +03:00 |
|
Leonid Yuriev
|
55f41f40a1
|
mdbx: rename log2n_powerof2() .
Change-Id: I22290630186c5041b6ae242d0db1f5c5f36da4ec
|
2021-04-26 02:06:28 +03:00 |
|
Leonid Yuriev
|
024ccf6826
|
mdbx: extract mdbx_get_sysraminfo() .
Change-Id: I8821009572d275a3b5d2d8729f605b115a80e50a
|
2021-04-07 04:45:53 +03:00 |
|
Leonid Yuriev
|
6c9e8817b7
|
mdbx-posix: use MAP_NORESERVE .
Change-Id: I6a46a5bfa5ed3fa5c3f26775fcba346f71106ad1
|
2021-03-17 01:27:23 +03:00 |
|
Leonid Yuriev
|
0be7616521
|
mdbx-posix: minor around MAP_FIXED_NOREPLACE .
Change-Id: I0991a5ed1e1706442675d9514932fad30de372f8
|
2021-03-17 01:27:23 +03:00 |
|
Leonid Yuriev
|
b164baa1f5
|
mdbx: add MDBX_ENABLE_MADVISE build option/macro.
Change-Id: I6174ec62e4811e891663b8ae0f7918aa09baf5ab
|
2021-03-17 01:18:18 +03:00 |
|
Leonid Yuriev
|
251eda6fb8
|
mdbx: HNY!
Change-Id: I86c7028001b349e3d06b837dc8e2f7e60fb3b1a2
|
2021-01-26 07:27:13 +03:00 |
|
Leonid Yuriev
|
a4df0acb00
|
mdbx: more logging for FD < STDERR_FILENO .
More for https://github.com/erthink/libmdbx/issues/144
Change-Id: I8dcd3cab8a39b16a1836c88ec92b30d6b0de8b51
|
2020-12-06 14:35:38 +03:00 |
|
Leonid Yuriev
|
d116e7235a
|
mdbx-posix: safeguard for DB corruption in case FD <= STDERR_FILENO .
Resolve https://github.com/erthink/libmdbx/issues/144
Change-Id: Ic3467338d494b021fa0d1863c8227976d0a2bcd5
|
2020-12-05 22:51:45 +03:00 |
|
Leonid Yuriev
|
2dab009e76
|
mdbx-windows: handling EXCEPTION_POSSIBLE_DEADLOCK .
Change-Id: If42c7833e9c4e02fef25634e69c0bd2e926686c1
|
2020-11-29 05:49:15 +03:00 |
|
Leonid Yuriev
|
2a740d3807
|
mdbx-windows: fix ERROR_NOT_SUPPORTED while opening UNC pathnames.
Resolve https://github.com/miranda-ng/miranda-ng/issues/2627
Change-Id: Iec06554dfcb9e0db215662d93fb5824cfe9ac7ef
|
2020-11-24 15:53:14 +03:00 |
|
Leonid Yuriev
|
23fd4444b5
|
mdbx-windows: remap whole section for mmap-resize if NtExtendSection() not available (Wine).
Some workaround for https://github.com/miranda-ng/miranda-ng/issues/1209
Change-Id: I8ce3cb0fb8bdc9bd36a05ab53343efbe4080d1f3
|
2020-11-23 10:47:07 +03:00 |
|
Leonid Yuriev
|
f76bf72021
|
mdbx-windows: retry resize-mmap always with reservation (less chance to failure).
Change-Id: I472651f6906b88ba674868e0cd6c81318bfc255b
|
2020-11-20 11:52:44 +03:00 |
|
Leonid Yuriev
|
0627d902dd
|
mdbx: add mdbx_env_delete() .
Resolves https://github.com/erthink/libmdbx/issues/119
Related to https://github.com/Kerollmops/heed/issues/58
Change-Id: Iec5bf5978e45bb6843f3ed8dd06ea4d34f2895cb
|
2020-10-10 00:58:53 +03:00 |
|
Leonid Yuriev
|
9b64b95bbc
|
mdbx-windows: fix mdbx_RegGetValue() for Windows 2000/XP.
Change-Id: I436a254300fcba8dbf75ea7568c2bf0c963fe060
|
2020-10-08 01:50:18 +03:00 |
|
Leonid Yuriev
|
280ed17ea2
|
mdbx: fix obsolete __noreturn .
Change-Id: Ic78843d6f16de2a409c16ceecc7acb2ed8aa3e68
|
2020-10-05 19:14:20 +03:00 |
|
Leonid Yuriev
|
1e3f633665
|
mdbx: fix build with uclibc.
Change-Id: I907fecd84b335a84d5f1dcaa44ac489c4dfb1907
|
2020-09-27 17:01:59 +03:00 |
|
Leonid Yuriev
|
860aa017db
|
mdbx: Merge branch 'master' into devel.
Change-Id: Ic130cd181097332aa2f49019d75403e18d8cba0d
|
2020-09-25 01:14:57 +03:00 |
|
Josh Soref
|
448728f584
|
mdbx: a lot of spelling (squashed).
Many Thanks to Josh Soref for these fixes.
https://github.com/jsoref
Resolves https://github.com/erthink/libmdbx/pull/118.
Change-Id: I4e09347da5c9d7a77cdd918a3b15284371440076
|
2020-09-25 01:01:25 +03:00 |
|
Leonid Yuriev
|
24c0749eb8
|
mdbx: rework/refine mdbx_mresize() for POSIX and MAP_FIXED_NOREPLACE (Linux 4.17).
Change-Id: I2e531b5e3e009b2a18ae1901fc7e2e6e4df667cd
|
2020-09-22 04:07:43 +03:00 |
|
Leonid Yuriev
|
cacc4aa829
|
mdbx++: changes after codereview-1 (part 2 of 2).
Change-Id: I8e1ca134bb8c5d447895f116247dfd12fa6871f0
|
2020-09-14 21:19:56 +03:00 |
|
Leonid Yuriev
|
cd4caeb03d
|
mdbx: add mdbx_panic() to C API.
Change-Id: I009a7889311b57ae2210822a8087889f900919f8
|
2020-09-10 15:37:59 +03:00 |
|
Leonid Yuriev
|
88a4b8cb9b
|
mdbx++: Initial C++ API (some extra methods are not implemented).
Change-Id: I0478d0c94dcd12b52916e87815e5731817407c3c
|
2020-08-28 16:45:30 +03:00 |
|
Leonid Yuriev
|
5e43ee61a2
|
mdbx: drop/deprecate MDBX_MAPASYNC.
Change-Id: I472f97f568a32325eb056c8ee4d2f2350a473bda
|
2020-08-06 01:48:56 +03:00 |
|
Leonid Yuriev
|
2cd7fcb16d
|
mdbx: fix minor Coverity issues.
Change-Id: I21c44de18e4e620ecec38ec837446150736faf79
|
2020-07-24 17:43: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
|
51a016245a
|
mdbx: using couple of condvars/events to avoid glitches on Windows.
Change-Id: I3256a8dcbb95c78e8dea3eb31ca73f42c58d2f61
|
2020-05-24 13:29:55 +03:00 |
|
Leonid Yuriev
|
971f924c44
|
mdbx-build: rearrange source files, rework CMakeLists.txt and refine GNUMakefile (squashed).
Change-Id: Id73d346695011dab2f670bb9e6293a1e5a1835ca
|
2020-04-17 00:37:57 +03:00 |
|
Leonid Yuriev
|
f81374a9ce
|
mdbx-build: amalgamation.
Change-Id: Ic32de6ee119df2bc12136b882f4f7cabaa1314a9
|
2019-09-03 02:30:55 +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
|
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
|
4ceaf842fe
|
mdbx: add timed auto-sync feature.
Change-Id: Ia9b8529fda321d5f78b306f270d157a78f708916
|
2019-08-23 13:13:20 +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
|
91088af935
|
mdbx: initial OSX support.
|
2019-08-13 02:10:03 +03:00 |
|
Leonid Yuriev
|
bf0e0382fc
|
mdbx: use O_DIRECT for db-copy.
Change-Id: Ib17fcdc2eba3382ed841a1e5e0a4f69f88c2491d
|
2019-08-11 01:14:52 +03:00 |
|
Leonid Yuriev
|
41f00485fd
|
mdbx: portability - allows operation without mremap().
Change-Id: I7fed42d51259e582e9dbc401c78f7f829a80f71c
|
2019-07-14 15:11:59 +03:00 |
|
Leonid Yuriev
|
097b274aa4
|
mdbx: portability - use C11 aligned_alloc().
Change-Id: I61819614ce355c8a2597c9b26997458b3d16081c
|
2019-07-14 15:07:54 +03:00 |
|
Leonid Yuriev
|
8f7ea1844b
|
mddx: portability - compatibility with BSD-style __assert().
Change-Id: Ic18f2de8a23597c62fab07041aeb62960e82c37a
|
2019-07-14 15:07:47 +03:00 |
|
Leonid Yuriev
|
6960c45e59
|
mdbx: avoids EFAULT "Bad address" while copy-as-is if DB is swapped-out from RAM.
Change-Id: I711efc1c54a04745bd561bc5e1db5e6f6d8b7115
|
2019-07-01 17:55:58 +03:00 |
|
Leonid Yuriev
|
38110579ba
|
mdbx: drops mdbx_write(), using mdbx_pwrite() instead of.
Change-Id: Iff3de2d5ef3fa2e92607d46b96d4526e464e593b
|
2019-07-01 16:39:18 +03:00 |
|
Leonid Yuriev
|
5b88fe819c
|
mdbx: fix pwrite() for WRITE_MAX.
Change-Id: If4924d20c1e267c2d3a190c860b89fc2fda0d517
|
2019-06-24 02:14:50 +03:00 |
|
Leo Yuriev
|
7d383350e8
|
mdbx: workaround for musl-libc __assert_fail() prototype bug.
|
2019-03-04 14:41:50 +03:00 |
|