Leonid Yuriev
0f63ab0385
mdbx: refine PN-lists.
...
Change-Id: Ib5ffafe634993b6f3b0fb7e35cc49f7d9b8c95a5
2018-08-21 22:19:20 +03:00
Leonid Yuriev
cb081424ff
mdbx: don't keep extra space while update on overflow-pages.
...
Change-Id: I70f2a87e0e9ec088f692021cfcfcd1b81f287e31
2018-08-21 22:19:20 +03:00
Leonid Yuriev
d3e9626a15
mdbx: fix mdbx_pnl_grow().
...
Change-Id: I414501381a0ffea91677d8e5ef696fa6f645001f
2018-08-21 22:19:20 +03:00
Leonid Yuriev
434f0d5b57
mdbx: fix/rewrite mdbx_update_gc().
...
Change-Id: I580a1ff0cbeeb529e2bcbd50d97bfba7bcf5a546
2018-08-13 01:21:07 +03:00
Leonid Yuriev
c43b7d1aba
mdbx-test: fix minor typos.
...
Change-Id: I4889a0e698bdfdda7eed257a5cd29e8b8089d102
2018-08-13 01:21:07 +03:00
Leonid Yuriev
111befb695
mdbx: refine befree-store inside freelist_save().
2018-08-12 21:19:18 +03:00
Leonid Yuriev
559e7bc8de
mdbx: fix MDBX_EKEYMISMATCH while update multi-value with MDBX_CURRENT.
2018-08-10 18:39:19 +03:00
Leonid Yuriev
1d716c043d
mdbx: fix assertions.
2018-08-10 18:33:59 +03:00
Leonid Yuriev
bc45eb30fb
mdbx: add checking result from mid2l-functions.
...
Change-Id: I8c2b4110c335b5632e4c71d6b8304f3ab437696e
2018-08-10 12:32:02 +03:00
Leonid Yuriev
c472300b13
mdbx: add MDBX_PNL_MAX and checking size of lists.
...
Change-Id: I32e31d2caf676e1e96cc4f82610544b5c5ee3a6d
2018-08-10 12:31:29 +03:00
Leonid Yuriev
b4fd29a67b
mdbx: fix assert-condition inside mdbx_pnl_xappend().
...
Change-Id: Id5ac89c85b7e673c44d60a626c805fe666d221bc
2018-08-10 09:36:03 +03:00
Leo Yuriev
e0fcd6e0ec
mdbx: add PTHREAD_MUTEX_ERRORCHECK for shared mutexes.
...
Change-Id: Ib9520b6bc68b294088298b1901278fab824ea43e
2018-08-02 18:36:45 +03:00
Leo Yuriev
6a51343b89
mdbx: fix 'db_dummy' inside mdbx_dbi_open_ex().
...
Change-Id: I70a21c9b77a43c5af749da5723fa965487a056b0
2018-08-02 11:14:46 +03:00
Leo Yuriev
d72ba6fd69
mdbx: fix Coverity warning (minor).
2018-08-01 21:31:56 +03:00
Leo Yuriev
275b80e086
mdbx: fix mdbx_page_get().
...
Fix commit 32c63077a4
Change-Id: I7649c3c65c19013e1b367e7554fbe823ea0511d2
2018-08-01 20:45:49 +03:00
Leo Yuriev
cb70cb18fc
mdbx: use 'short' for lck-type (minor).
2018-08-01 18:31:09 +03:00
Leo Yuriev
5ed725dc29
mdbx: minor refine mdbx_txn_renew0().
2018-08-01 18:31:09 +03:00
Leo Yuriev
e06ab1d2a5
mdbx: explicit call mdbx_rpid_clear().
2018-08-01 18:31:09 +03:00
Leo Yuriev
ac54a3959d
mdbx: add fallback2shared for mdbx_lck_exclusive().
2018-08-01 18:31:09 +03:00
Leo Yuriev
5a1f388db5
mdbx: drop unused mdbx_lck_upgrade().
2018-08-01 18:16:40 +03:00
Leo Yuriev
dbf66ec0bb
mdbx: add __printf_args into defs.h
...
Change-Id: I0e6da5115bc427d04eb3ab59184152275c2a7cae
2018-07-28 17:59:56 +03:00
Leo Yuriev
32c63077a4
mdbx: check page bound inside mdbx_page_get().
...
Change-Id: I7649c3c65c19013e1b367e7554fbe823ea0511d2
2018-07-25 11:36:17 +03:00
Leo Yuriev
21858201e0
mdbx: fix nasty suspend_and_append() bug.
...
Change-Id: I043adcff2e6c040426a51b5d4b15bac849e6dd9f
2018-07-24 00:18:47 +03:00
Leo Yuriev
dfea68270a
mdbx: fix assertion inside mdbx_suspend_threads_before_remap().
...
Change-Id: If01fc5f655922c55b3955f2b00c93b80328c5232
2018-07-19 08:48:50 +03:00
Leo Yuriev
f425e98eb5
mdbx: fix mdbx_env_compact().
...
Change-Id: Ie269b45c3d0325cb1b2d82f4ed1c18f8b3fe4212
2018-07-06 15:25:14 +03:00
Leo Yuriev
20a61f273c
mdbx: set MDBX_FATAL_ERROR when mdbx_env_open() failed.
...
Change-Id: If02d670c7ce3a5dd696a87848df28ffe817c6922
2018-07-06 15:08:33 +03:00
Leo Yuriev
8e0f5bea4a
mdbx: minor fix to avoid Valgrind false-positive issue.
...
Change-Id: Ifa4dc51b500ff42a88182d750e22572aa5b2155b
2018-07-01 17:42:35 +03:00
Leo Yuriev
c9d0c8edeb
mdbx: create new files with mode=0640 inside mdbx_env_copy().
...
Change-Id: I468f0fa29d471a2e877ea20a5e61f6358347c6eb
2018-06-30 14:56:28 +03:00
Leo Yuriev
e57d4bbb00
mdbx: remove created file if mdbx_env_copy() failed.
...
Change-Id: Ie47981b6031c6e7099a5d49f6cd7338ab2c1e040
2018-06-30 14:56:28 +03:00
Leo Yuriev
797bcf9aca
mdbx: add mdbx_removefile().
...
Change-Id: I985926bdef28387d5872317a3ecf47953ce4812c
2018-06-30 14:56:28 +03:00
Leo Yuriev
ba1387b791
mdbX: add few __cold (minor).
...
Change-Id: I8b99ea4f3829c6b08355cc8de0a11962756370af
2018-06-30 14:18:36 +03:00
Leo Yuriev
d90e6187f7
mdbx: support exclusive mode without lck-file.
...
Change-Id: I1beef09d62965d0d777f579a8aa6f15c478eebd2
2018-06-30 14:15:24 +03:00
Leo Yuriev
9e81d5b631
mdbx: allow mdbx_env_compact() to fix page leaks.
...
Don't treat fixing page leaks as an error while copy DB with compactification.
Change-Id: I2a575ff9e2b24610172aaca939b5f6957c26ec77
2018-06-30 01:35:27 +03:00
Leo Yuriev
639e639fa3
mdbx_chk: fix GC check for MDBX_EXCLUSIVE/MDBX_RDONLY modes.
...
Change-Id: I40c8f8321791d0c6ddcbbfcf67f2903347d90f17
2018-06-30 00:33:22 +03:00
Leo Yuriev
f4a01da47f
mdbx: avoid weak meta inside mdbx_init_metas().
...
Change-Id: Ib9c5ab04ad8cff3ad43d94a288cecec45d7ef37d
2018-06-30 00:03:15 +03:00
Leo Yuriev
b9d3eac12e
mdbx: minor refine mdbx_env_copy().
...
Change-Id: I007add822bc4d30b7a8a838981ada6d2812f669a
2018-06-29 23:54:59 +03:00
Leo Yuriev
bc77ab3cca
mdbx: refine Coverity warning fix.
...
Change-Id: I6bbb791f32a6b64712e88e0b2dd87052e353c730
2018-06-21 18:28:30 +03:00
Leo Yuriev
31b5f64054
mdbx: bump version to v0.2.0
...
Change-Id: I113419b685c38f23c35da6790648f7f994a15f29
2018-06-21 17:54:59 +03:00
Leo Yuriev
9b39b959de
mdbx: cleanup formating (cosmetic).
...
Change-Id: I4a502fa8e43b9556318628bef05447567e5a98be
2018-06-21 17:28:42 +03:00
Leo Yuriev
40ec114048
mdbx: fix Coverity warning (minor, paranoia).
...
Change-Id: I232377a03244dc33beb4f332c0024b454027f659
2018-06-21 17:28:01 +03:00
Leonid Yuriev
b57c3b2503
mdbx: check for non-local files in non-exclusive mode.
...
Change-Id: Ibd1bbf48aba42d5ed736069d59b18ac0dd143554
2018-06-20 13:52:08 +03:00
Leonid Yuriev
f625b6cb42
mdbx: restore env-flags when env_open() failed.
...
Change-Id: I597b242c6f56c16dfef0a3d34c2113f71908cef4
2018-06-20 13:52:08 +03:00
Leo Yuriev
0dfa9cd09a
mdbx: add MDBX_EXCLUSIVE instead of mdbx_env_open_ex().
...
Change-Id: I3c817d58d971385bcd07643df14beaf7122c7836
2018-06-20 13:52:02 +03:00
Leo Yuriev
09ad941a05
mdbx: Windows XP compatibility.
...
Change-Id: Iafe3a83110610071e42a168ef9fc5f8d3131854f
2018-06-20 13:47:14 +03:00
Leo Yuriev
28eda32c12
mdbx: split-out mdbx_is_file_local().
...
Change-Id: Ib7d990c4ce19d9b14a4b6739ca321d9d2666c882
2018-06-20 13:47:14 +03:00
Leonid Yuriev
fc41cd64d1
mdbx: add MDBX_CONFIG_MANUAL_TLS_CALLBACK.
...
Change-Id: I3ed60348f532cc9206f9ec0e7c1d3428b4f037a2
2018-06-20 13:47:14 +03:00
Leo Yuriev
9f2bf6a377
mdbx: provide SRWL stub for Windows XP/2000.
...
Change-Id: I438373a4952298efc88ca4c1a92c88e173b82f98
2018-06-20 13:47:14 +03:00
Leo Yuriev
685abc7bcb
mdbx: more/again reformat by clang-format 6.0 (cosmetic).
...
Change-Id: I769ee5a80d75a49fc5bb041fefda6f22adc05424
2018-06-20 13:45:11 +03:00
Leo Yuriev
9db090087e
mdbx: reformat by clang-format 6.0 (cosmetic).
2018-06-18 21:29:12 +03:00
Leo Yuriev
93e3b4129a
mdbx-tools: fix wrong 'bad sequence' error from mdbx_stat.
2018-06-18 16:36:53 +03:00
Leo Yuriev
f314cd6b92
mdbx: windows - fix truncation race while unmap.
...
Change-Id: I93983d100c78aa3e57c5a7ebd9d5bf2a96081ed7
2018-06-15 02:54:41 +03:00
Leo Yuriev
b6e605b8da
mdbx: bump version to v0.1.5
2018-06-14 13:53:05 +03:00
Leo Yuriev
2f983b281d
mdbx: drop MDBX_DEVEL.
...
Change-Id: I5fc1a240e7909b8ecaf2ef19a83a9e59ea5609ba
2018-06-13 11:37:56 +03:00
Leo Yuriev
efdcbd8c35
mdbx: disable non-blocking DB-close under Windows.
...
Change-Id: If6579467132439b6b627e756f67f6bd35fed8b4f
2018-06-13 02:46:18 +03:00
Leo Yuriev
634efbe34b
mdbx: don't block close_env() if other write-txn running.
...
Change-Id: I1d19afcc245578681b8bc3ee3966ac38bc596ec4
2018-06-12 13:18:17 +03:00
Leo Yuriev
fdc248384e
mdbx: skip meta if usedbytes beyond oef.
...
Change-Id: I1e95136bce7169b7ed612f9746d0cdec43caca14
2018-06-01 13:27:20 +03:00
Leo Yuriev
38369bd24b
mdbx: force steady-sync when shrinking DB (fix corruption bug).
...
Change-Id: I636ee2ad04f28d4038d74bdf2c7061ab885f4b82
2018-06-01 13:15:21 +03:00
Leo Yuriev
ab4c9c9db0
mdbx: return MDBX_CORRUPTED instead of crash if MDBX_DUPSORT mismatch.
...
Change-Id: I439a3c859dbfcfbe33a3db077c3e8200a1417c31
2018-05-28 20:04:48 +03:00
Leo Yuriev
e86bd88751
mdbx: disable warning #5045 for MSVC (minor).
2018-05-21 16:31:36 +03:00
Leo Yuriev
bea1349dd4
mdbx: bump internal version info to v0.1.4
2018-05-04 13:21:18 +03:00
Leo Yuriev
d0ddc8569b
mdbx-windows: fix lck_reader_alive_check().
...
Change-Id: Icbc54d9b3003f70bba573a3807c5161380339460
2018-05-04 02:17:21 +03:00
Leo Yuriev
f1edd1579a
mdbx: fix wrong freeDB search.
...
Avoid search freeDB while tree is updating.
This resolves https://github.com/leo-yuriev/libmdbx/issues/31
Bug was inherited from LMDB.
Change-Id: I0b12f8d9b88bca5aa26ca27db81df9b72c6a19b7
2018-04-25 03:01:12 +03:00
Leo Yuriev
d127c28e83
mdbx-windows: fix srw-release if rdt-lock failed (minor/paranoia).
2018-04-12 00:56:58 +03:00
Leo Yuriev
159d676429
mdbx: fix typo in mdbx_chk output.
2018-04-10 21:12:41 +03:00
Leo Yuriev
f4a9018690
mdbx: bump internal version info to v0.1.3
...
Change-Id: I7db311c812d531f6628101715f6658005db3ea24
2018-04-03 20:37:07 +03:00
Leo Yuriev
797ae9d1db
mdbx: minor fix debug-output for mdbx_thread_key_create().
...
Change-Id: I718130cf2385b6221187cbcdeedd9d48d05289bb
2018-04-03 20:04:10 +03:00
Leo Yuriev
864be54f01
mdbx: fix/rework rthc counting.
...
Change-Id: I97fd5bd6dc1a46658138d82db10e937c9595d81f
2018-04-03 19:28:12 +03:00
Leo Yuriev
571b50622e
mdbx: restore workaround for glibc's bug #21031 .
...
Workaround for https://sourceware.org/bugzilla/show_bug.cgi?id=21031
Change-Id: I6cf9e037cc2fc298096b78ec96773f19478ed5c0
2018-04-03 17:44:18 +03:00
Leo Yuriev
36a86bbc6e
mdbx: fix cursor tracking inside mdbx_rebalance().
2018-03-26 20:20:14 +03:00
Leo Yuriev
02fc5fe158
mdbx: update internal version info.
2018-03-23 17:23:28 +03:00
Leo Yuriev
45f159ddd3
mdbx: mdbx_cursor_put(MDBX_APPEND+MDBX_NOOVERWRITE) should return MDBX_KEYEXIST instead of MDBX_EKEYMISMATCH.
...
When MDBX_APPEND is used the ordering of keys is important.
Therefore MDBX_EKEYMISMATCH should me returned when given key <= last.
On the other hand, if MDBX_NOOVERWRITE is also used
then the MDBX_KEYEXIST should be returned, but not MDBX_EKEYMISMATCH.
2018-03-23 17:21:27 +03:00
Leo Yuriev
6758348046
mdbx: import intrin-includes from t1ha.
2018-03-22 21:11:26 +03:00
Leo Yuriev
61a2c56784
mdbx: fix/rework cache-line alignment.
2018-03-22 21:11:26 +03:00
Leo Yuriev
6a074cb85a
mdbx: fix unaligned access to mp_ptrs[] on fake-page.
...
Based on http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=commitdiff;h=e77918a903d980ff789b7e32f71725481e870510
2018-03-22 21:11:26 +03:00
Leo Yuriev
dbc87a8a5e
mdbx: refine MDBX_CACHE_IS_COHERENT.
2018-03-22 20:38:20 +03:00
Leo Yuriev
c52a57dac5
mdbx: fix for MIPS cacheflush().
2018-03-22 20:37:50 +03:00
Leo Yuriev
5ce40269b3
mdbx: fix gcc warning (minor).
2018-03-22 20:37:50 +03:00
Leo Yuriev
86274513f9
mdbx: more __has_include().
2018-03-21 22:19:17 +03:00
Leo Yuriev
f5571e4027
mdbx: import byte-order macros from t1ha.
2018-03-21 22:19:17 +03:00
Leo Yuriev
62ae928b40
mdbx: add neutral __ia32__ and __amd64__ marcos.
2018-03-21 22:18:57 +03:00
Leo Yuriev
a282965aa0
mdbx: add check __ALIGNED__ for UNALIGNED_OK macro.
2018-03-21 21:10:57 +03:00
Leo Yuriev
475da5bcfe
mdbx: make mdbx_txn_lock() and mdbx_txn_unlock() exportable for mdbx_chk.
2018-03-20 22:19:32 +03:00
Leo Yuriev
679fb56787
mdbx: lookup suitable txnid for rollback to avoid meta-pages clashes.
2018-03-20 22:16:15 +03:00
Leo Yuriev
dd6cb30820
mdbx-chk: directly use mdbx_txn_lock() for write/recovery mode.
2018-03-20 21:37:42 +03:00
Leo Yuriev
e8dd15088a
mdbx: add __ARM_FEATURE_UNALIGNED __e2k__ for UNALIGNED_OK.
2018-03-19 19:59:00 +03:00
Leo Yuriev
d0e1c02a8a
mdbx-chk: rework/fix read-write mode.
2018-03-19 18:08:45 +03:00
Leo Yuriev
a2ec7f2be1
mdbx: add mdbx_txn_flags().
2018-03-19 18:08:45 +03:00
Leo Yuriev
64613c9061
mdbx: fix minor memleak (Coverity).
2018-03-19 16:16:31 +03:00
Leo Yuriev
c05d179035
mdbx: temporary workaround for Elbrus's libc bug.
...
https://bugs.mcst.ru/bugzilla/show_bug.cgi?id=2820
2018-03-19 15:05:56 +03:00
Leo Yuriev
195b53374e
mdbx: fix #pragma pack(pop) balance.
...
Thanks to <Sergey.V.Barannikov@mcst.ru>.
2018-03-14 16:05:43 +03:00
Leo Yuriev
f521b6615e
mdbx: fix #endif's comment (cosmetics).
2018-03-14 15:32:32 +03:00
Leo Yuriev
9bbc62f5a0
mdbx: refine internal warnings control.
2018-03-14 15:16:49 +03:00
Leo Yuriev
8c96b1e73b
mdbx: fix missing MDBX_DEVEL=0.
2018-03-14 15:07:16 +03:00
Leo Yuriev
483c4abb3f
mdbx: remove Elbrus's alignment_reduction_ignored workaround.
2018-03-14 14:57:46 +03:00
Leo Yuriev
c267a71475
mdbx: workaround for "alignment-reduction-ignored" lcc's bug.
...
Change-Id: I000bfaffd78ef7b6e27d6178bc2a5defc32cc357
2018-03-07 13:59:51 +03:00
Leo Yuriev
a2099586ed
mdbx: disable -Wno-constant-logical-operand inplace.
...
Change-Id: I0f7745f40e3340ba6d14d985a735777667a7bdde
2018-03-07 13:18:30 +03:00
Leo Yuriev
f76c5188fb
mdbx: add stubs for __has_warning and __has_include.
...
Change-Id: Ic037a38d254e6d986b84a5bfd48106e43cf80320
2018-03-07 13:07:17 +03:00
Leo Yuriev
62603aeadc
mdbx: add ifdef-guard for clang < 3.8
...
Change-Id: Iba7a90e2548056cbdf07ae471eb002da7145821c
2018-03-07 13:06:39 +03:00
Leo Yuriev
62f36ea499
mdbx: bump version to 0.1
...
Change-Id: I31cdcd598c532d1dd96a4aea961495c838ce0b81
2018-03-07 12:25:35 +03:00
Leo Yuriev
ad4c5d8972
mdbx: add __cold/__hot for Elbrus.
2018-03-07 12:24:32 +03:00
Leo Yuriev
a93fafceff
mdbx: strip utf8-bom for Elbrus (minor).
...
Change-Id: I9030abe267c4abfa2c5c2deb439c0b8025b83047
2018-03-07 12:09:43 +03:00
Leo Yuriev
260c1d71dd
mdbx: add self_latter_reader_txnid into MDBX_envinfo.
...
Change-Id: I17ac6e921f99df6ed61096ff0fbfbacf5a7e4608
2018-02-04 17:13:27 +03:00
Leo Yuriev
72557af2b5
mdbx: HNY!
...
Change-Id: I2a91b986964d96bb3e5f848e3c17408bd7745866
2018-02-04 13:10:54 +03:00
Leo Yuriev
6a0ff097ee
mdbx: immediately share dbi-handles for present TBLs (major).
...
Change-Id: I75c998e06b3ccc25bd22ef389d119052d524d70b
2018-02-04 12:59:47 +03:00
Leo Yuriev
e8ae506773
mdbx: minor refine env-init.
2018-02-02 19:06:14 +03:00
Leo Yuriev
7b59452aed
mdbx: less memset overhead while txn-init.
2018-02-02 19:05:41 +03:00
Leo Yuriev
5db134c816
mdbx: minor refine defs.
2018-02-02 19:04:33 +03:00
Leo Yuriev
5cfec7a832
mdbx: workaround for Windows LockFileEx/WriteFile bug.
...
This resolves https://github.com/leo-yuriev/libmdbx/issues/25
2018-01-31 15:26:44 +03:00
Leo Yuriev
5c9baa06b9
mdbx: fix mdbx_txn_end() assert for mt_owner.
2018-01-30 19:52:39 +03:00
Leo Yuriev
1143390e58
mdbx: fix/allow mdbx_txn_end() to re-aborting txn.
2018-01-24 18:45:42 +03:00
Leo Yuriev
ca06c1973e
mdbx: fix/allow mdbx_txn_renew() after an renew-error.
2018-01-24 17:40:57 +03:00
Leo Yuriev
a45612e6d0
mdbx: fix lower_size overwrite.
...
Change-Id: If9addb1f549628866e3ce9597f1a542684ef8f2d
2018-01-14 22:40:11 +03:00
Leo Yuriev
ab7cb2c39e
mdbx-build: minor cleanup after pul-request/merge.
...
Change-Id: Ia612dbd939be7acd938fca8eb3f93f650560417a
2018-01-14 22:09:52 +03:00
Leonid Yuriev
506caee9e5
mdbx-buiid: Merge pull request #21 from vvromanov/master
...
Add CMake build files and rpm generation.
2018-01-14 21:42:34 +03:00
Leonid Yuriev
8d4b6b187f
mdbx-windows: resize file on umnap.
...
Change-Id: Ia4739bfcd2cc7b91c14e294c7569cbee582165b1
2018-01-14 21:16:52 +03:00
Leo Yuriev
5acf93c54d
mdbx: rework allowing open large DB from a 32-bit environment.
...
Change-Id: Id7d9e2041158d0715496b852a5ddb297bde1495e
2018-01-14 21:16:52 +03:00
Leo Yuriev
915830d0d3
mdbx: fix mapsize_min typo inside mdbx_read_header().
...
Change-Id: I65ffebb37f1332832a0e17796ba184be5d3fc929
2018-01-14 21:16:52 +03:00
Leo Yuriev
c2fe0a71bc
mdbx-windows: reserve address space to avoid occupy it by other threads.
...
Change-Id: Ia5caec6bbeb55c7894de70e349e6e9479572b688
2018-01-14 21:16:52 +03:00
Leonid Yuriev
5c058287d5
mdbx-windows: check ability of address space for growth before umnap.
...
Change-Id: Ibb62dae26ebab8f3efdbf6aed1b26d88ed63a2b7
2018-01-14 21:16:52 +03:00
Leonid Yuriev
373d4ad81d
mdbx: allowing open large DB from a 32-bit environment.
2018-01-14 15:39:11 +03:00
Leo Yuriev
8a08df9188
mdbx: check txn inside mdbx_cursor_renew().
...
Change-Id: I444ff36739d875dda835e8ded7a7aae37c8bd2be
2018-01-11 21:49:29 +03:00
Leo Yuriev
c4007cbc70
mdbx: check txn inside mdbx_cursor_txn().
...
Change-Id: Ia3d24800890369e3b6cab23d8f69c27246a4f017
2018-01-11 21:48:47 +03:00
Leo Yuriev
6b5533338f
mdbx: prohibit recursive txn-begin by MDBX_BUSY.
...
Change-Id: I46f5159cec72df9c8aece07fbfb462682499a272
2018-01-11 21:15:33 +03:00
Leo Yuriev
18432ebfab
mdbx-windows: minor refine LCK_BODY_LEN.
...
Change-Id: Id02434a12ba66f15b2aa624819c068f6e6fce0d3
2018-01-10 01:02:23 +03:00
Leo Yuriev
455f60eec1
mdbx: minor fix OSAL (extra assert).
...
Change-Id: I2caad4a9c4638f124a2bae534bff4d9ed7b57f30
2018-01-10 01:01:49 +03:00
Leo Yuriev
abcacea543
mdbx: more pid and MDBX_FATAL_ERROR checks.
...
Change-Id: Ifa223f270312cb7bbba01bdb76173f8230efb91b
2018-01-09 21:14:42 +03:00
Leo Yuriev
c0be0d6fb7
mdbx: fix mdbx_env_set_geometry() for case remap failed.
...
Change-Id: I0850692737eaee3c7f33194dfa19b88ce74497c8
2018-01-09 21:13:04 +03:00
Leo Yuriev
8e8c00aadf
mdbx-windows: raise MDBX_PANIC if remap failed.
2018-01-09 15:46:42 +03:00
Leo Yuriev
963da34412
mdbx: fix mdbx_env_set_geometry().
2018-01-09 15:38:03 +03:00
Leo Yuriev
e7922b65fa
mdbx-windows: refine mdbx_mresize().
2018-01-09 15:37:52 +03:00
Leo Yuriev
59ad929d36
mdbx-windows: fix and refine mdbx_suspend_threads_before_remap().
...
Change-Id: I4f289f5d603ca18e6714455604dd4ce98931af41
2018-01-08 18:19:25 +03:00
Leo Yuriev
30bd7d3078
mdbx: shrinking memory-mapping for Windows (initial).
...
Change-Id: I3c3c2df0747c788ea36d7764c1e8139098ca62be
2018-01-08 17:47:41 +03:00
Leo Yuriev
f10f5b376f
mdbx: account freelist-backlog while shrinking DB.
...
Change-Id: I8b211f281483e7cb6344ef99c571f3516d16f61d
2018-01-07 22:31:34 +03:00
Leonid Yuriev
7812476518
mdbx: fix readonly mapping for Windows.
...
Change-Id: Ie301d7af74ff91e802aa78af8cfb329f587137ee
2018-01-07 17:08:47 +03:00
Vladimir Romanov
4ed8eddf42
Improve cmake support. Add rpm generation
2018-01-07 15:10:06 +03:00
Leonid Yuriev
d14ca5cc4f
mdbx: fix _InterlockedExchangeAdd64 for some 32-bit SDKs.
...
Change-Id: I18280e8ef6432b9db3c5073fd59eaa102462f98d
2018-01-07 14:35:47 +03:00
Leo Yuriev
897d4dbf87
mdbx: fix growth memory-mapping on Windows.
...
This resolves https://github.com/leo-yuriev/libmdbx/issues/22
Change-Id: I25c2e65d9f68da8012ee097d3ad579cd548f2e09
2018-01-07 14:31:29 +03:00
Leo Yuriev
91a9d4d916
mdbx: more ntpapi for Windows.
...
Change-Id: I616b09502302be9e3017db7e99cf4dcf8697f32f
2018-01-07 14:22:17 +03:00
Vladimir Romanov
18a261a6dd
Add CMake support
2018-01-04 09:27:09 +03:00
Leo Yuriev
24a8bdec49
mdbx: fix SIGSEGV in case mdbx_env_close_ex() called without mdbx_env_open().
2017-12-20 14:22:55 +03:00
Leo Yuriev
3e9308eb0e
mdbx: check for running write-txn inside mdbx_env_close().
2017-12-19 16:38:21 +03:00
Leo Yuriev
b1c7fa30c0
mdbx: fix MDBX_BUSY comment/description (typo).
2017-12-19 16:37:20 +03:00
Leo Yuriev
96a0647253
mdbx-windows: fix mmap-resize (add MEM_RESERVE afrer NtExtendSection).
2017-12-19 16:07:30 +03:00
Leo Yuriev
8008e23cfa
mdbx-windows: minor fix for legacy Windows SDK.
2017-12-19 16:07:25 +03:00
Leo Yuriev
a5b077b2f0
mdbx: minor clarify mdbx_env_set_geometry().
2017-12-19 15:33:25 +03:00
Leo Yuriev
46a3d4e0a3
mdbx: fix assertion (minor, not a malfunction).
...
The `env->me_sync_pending` could be zero
when `mdbx_sync_locked()` called from `mdbx_env_set_geometry()`.
Therefore `mdbx_assert(env, !META_IS_STEADY(head) || env->me_sync_pending != 0)` at the top of `mdbx_sync_locked()`
could be trigger assertion failure.
2017-12-18 14:39:41 +03:00
Leo Yuriev
fc1bbf3a4b
mdbx: disable 'unreachable code' for MSVC.
...
Change-Id: I4f9887b557885cb9a3829d19a56d332c76656cf8
2017-10-29 03:23:39 +03:00
Leo Yuriev
866ca18970
mdbx: add few __fallthrough and __unreachable.
...
Change-Id: Ife18986a3a6391c76f63d12f8102bd6670ae63eb
2017-10-29 02:12:05 +03:00
Leo Yuriev
aec2445161
mdbx: rework '_noop' and related macros.
...
Change-Id: Ic9ff3662a6abeb64aa0816e448007dd524794b1e
2017-10-29 02:12:05 +03:00
Leo Yuriev
db4ab61a0c
mdbx: drop '__packed'.
...
Change-Id: Idf3e510733adb2b12b94fe1dcd22f76e02df955b
2017-10-29 00:59:11 +03:00
Leo Yuriev
6f6b360aba
mdbx: add/fix 'fallthrough' for GCC 7.x
...
Change-Id: I45c57ea910978aaa857086d7794ad92ba0ae7157
2017-10-28 11:45:04 +03:00
Leo Yuriev
d1f04656ab
mdbx: more robustness for thread checking while reset/renew/abort of txn.
2017-10-27 18:01:32 +03:00
Leo Yuriev
d4bf0a3332
mdbx: refine/simplify mdbx_find_oldest().
...
Simplify b6f14780e3
2017-10-27 15:43:06 +03:00
Leo Yuriev
1a27e40701
mdbx: Merge branch 'fix-after-txntry'.
2017-10-27 14:17:43 +03:00
Leo Yuriev
b6f14780e3
mdbx: fix performance degradation in the absence of readers.
...
Change-Id: I59a51b61918463e68d3e0490c715f4dcc9ecb788
2017-10-27 13:36:10 +03:00
Leo Yuriev
0a7a290d06
mdbx: drop mdbx_txn_trylock().
2017-10-26 21:49:39 +03:00
Leo Yuriev
5e1721efdd
mdbx: fix mdbx_robust_trylock().
2017-10-26 21:49:38 +03:00
Leo Yuriev
17b8e48bf4
mdbx: cleanup after last pull-request.
...
Cleanup after 4e40af60e7
(Merge pull request #20 from rouzier/feature/txn_try).
2017-10-26 21:49:38 +03:00
James Rouzier
7c466e53f0
Add the ability to not block when opening a write transaction
2017-10-25 19:41:28 -04:00
Leo Yuriev
4f1c846437
mdbx: rollback to not-a-weak instead to steady.
2017-10-10 18:14:07 +03:00
Leo Yuriev
b7121d7711
mdbx: fix meta.mm_psize typecast.
2017-10-09 17:41:13 +03:00
Leo Yuriev
9fd7056b4f
mdbx: fix loose/dirty bug.
...
Change-Id: I725b640cfc29e1c0710abb155e05d44bb7bb3cc3
2017-10-05 09:01:19 +03:00
Leo Yuriev
f4ca6ed6b9
mdbx: fix handling MAX_MAPSIZE32 limit.
2017-10-02 18:01:08 +03:00
Leo Yuriev
2ce817b438
mdbx: ensure checks to avoid using meta-pages.
...
Change-Id: I21959b8a26961bb65f3bc3b87b24a3c4f6a673f7
2017-09-26 20:13:43 +03:00
Leo Yuriev
dc31d7d1a3
mdbx: fix shrinking below a lower-bound.
...
Change-Id: Ia6d497e2d7c6d7ee646b23b8df944a01d96445fc
2017-09-26 19:37:34 +03:00
Leo Yuriev
6a2ce93f19
mdbx: minor simplify mdbx_dbi_open_ex().
...
Simplify prev commit.
Change-Id: Id6a5abd6b18ceefae4cf259935bd6d9d9adb7d76
2017-09-07 09:52:53 +03:00
Leo Yuriev
5b23d7e452
mdbx: fix mdbx_dbi_open_ex(MDBX_CREATE) for rdonly txn.
...
Fix https://github.com/leo-yuriev/libmdbx/issues/19
Change-Id: I3ae1ab3188482fd8c31de51d62e34591082cd60a
2017-09-07 09:43:44 +03:00
Leo Yuriev
26dab6dee0
mdbx: import - ITS#8722 fix FIRST_DUP/LAST_DUP cursor bounds check.
...
Change-Id: I6dbba19b594a4bd3545d430a3438cf3b1c5a0a0b
2017-09-07 09:43:43 +03:00
Leo Yuriev
ee9d0903c8
mdbx: use <winternl.h> for Windows.
2017-09-05 21:02:03 +03:00
Leo Yuriev
e6e92134a6
mdbx: fix PVS-Studio warnings.
2017-09-05 21:02:03 +03:00
Leo Yuriev
ace062f4a7
mdbx: fix warning around mode_t
.
...
More for https://github.com/leo-yuriev/libmdbx/issues/15
Change-Id: I1743e01e9111400942fd2a4846a21c475101a148
2017-08-16 11:28:38 +03:00
Leo Yuriev
728252058d
mdbx: fix/refine comment.
...
Change-Id: I8f09ca755ebcc1e58531504a8998391e7a3c8c9a
2017-08-16 09:29:30 +03:00
Leo Yuriev
9b5e28e8e6
mdbx: fix mdbx_setup_dxb() for a case when db-size not (pre)configured by user.
...
Fix https://github.com/leo-yuriev/libmdbx/issues/11
Change-Id: I6fccd4877fed563cfb3a03f887bbba73eff5ac84
2017-08-16 08:46:20 +03:00
Leo Yuriev
0dc145aa2d
mdbx: fix typo and endif comment.
...
Change-Id: Iae7ae3ce55698c1d6f03111b7d1945f3ac4e9394
2017-08-08 23:42:45 +03:00
Leo Yuriev
7b8a1c9794
mdbx: fix typo.
...
Change-Id: Ib491469a2a7ebb6bdadf995fa3a964d23fdf7036
2017-07-28 21:53:15 +03:00
Leonid Yuriev
c91885de67
mdbx: use _ASSERTE() for MSVC.
...
Change-Id: Ibb277e8c98fbfb1e658c85dc49e57769f2683da3
2017-07-28 14:39:44 +03:00
Leonid Yuriev
82a716847b
mdbx: fix/workaround mmap-resize for Windows.
...
Change-Id: I58b5784f1309cd1e88af860828f561fe29f51ff0
2017-07-28 14:37:50 +03:00
Leonid Yuriev
128cc2d308
mdbx: fix pnl_sort().
...
Change-Id: I57f9a8dd8d61c6f11f8f30d15f8812cf2f850789
2017-07-28 14:37:06 +03:00
Leo Yuriev
0f37ae56d8
mdbx: minor cleanup version-info.
...
Change-Id: I1c208af0264ed6254d942b29b9e0fc25a745f4e0
2017-07-27 18:10:07 +03:00
Leo Yuriev
c6fc062cfd
mdbx: fix MSVC warnings.
...
Change-Id: Ida49e653510358d7c81fe5da73a0131dcb6268f6
2017-07-27 17:35:00 +03:00
Leo Yuriev
684847db39
mdbx: relax backlog estimation/preparation for freelist_save().
...
Change-Id: I931b76179855c16cb8b6265db262309061ac196d
2017-07-27 16:58:45 +03:00
Leo Yuriev
aa5403ad38
mdbx: 1/1 as default grow/shrink for MDBX_DEBUG.
...
Change-Id: I90fa2705113f134984f9ec341ef37131e598d121
2017-07-27 16:58:34 +03:00
Leo Yuriev
c49d1bc97a
mdbx: provide refunding pages into unallocated space.
...
Change-Id: I9d4f953adc6f3b745a9822044f3933adba4ca6fe
2017-07-27 16:58:22 +03:00
Leo Yuriev
dcc179f412
mdbx: more checks for pgno-list ordering.
...
Change-Id: I6c6093532e8d2c07c42f62d23579ef86cbbd43b7
2017-07-27 16:58:09 +03:00
Leo Yuriev
b8b3ba8e91
mdbx: provide configurable ascending/descending sort-order for pgno-lists.
...
Change-Id: I3134c100880ff28bb0aaf46ed91affc9f6347110
2017-07-27 16:57:52 +03:00
Leo Yuriev
552b759878
mdbx: refine pgno-lists.
...
Change-Id: Id38e4aff508437210d4c0e63962067dfe518eb31
2017-07-27 16:53:42 +03:00
Leo Yuriev
592c064873
mdbx: refine freelist_save() to simplify loose-pages handling (preparation for pages refunding).
...
Change-Id: I1f15487383fbfb6770e1f7128a2d8349a1cfdf25
2017-07-27 16:53:01 +03:00
Leo Yuriev
7ed97d50b1
mdbx: guard put-data inside freelist_save() by C_RECLAIMING (paranoia).
...
Change-Id: I9cb6bf27717f76dc97259d48e4253a30c2345afd
2017-07-27 16:52:59 +03:00
Howard Chu
7626bcfdde
mdbx: backport - ITS#8699 more for cursor_del ITS#8622.
...
Set C_DEL flag on reinit'd subcursor
Change-Id: I8ad1c10afd481f61b8e521d02c4d2de3be5089d7
2017-07-27 04:45:03 +03:00
Leonid Yuriev
092156ee4f
mdbx: fix/redefine ssize_t, PRI*PTR nad PRI*size macros for MSVC.
...
Change-Id: I6cb565087350cf1d1e1735bff1c5480c3d4c02db
2017-07-26 19:17:11 +03:00
Leo Yuriev
336bef7e51
mdbx: make internal 'atomics' compatible with C++.
...
Change-Id: I1381f477e977edf4bf56871a2e34af1b302867a0
2017-07-26 17:38:06 +03:00
Leo Yuriev
fb9d7a4471
mdbx: refine freelist_list() to avoid coverity warnings.
...
Change-Id: I38eee44e4ca926e7d11ef5e3f7f3ce2e92f71259
2017-07-26 17:36:32 +03:00
Leonid Yuriev
a78edd314e
mdbx: more fix MSVC '/Wall' warnings.
...
Change-Id: I359a3056d6bb5db762fe6b6b8a89e8ed066f8a87
2017-07-26 16:02:49 +03:00
Leonid Yuriev
006f531757
mdbx: turn /Wall
for MSVC.
...
Change-Id: Idc264a9fe40a2af8629d96121fb91cba94e7147f
2017-07-26 16:02:19 +03:00
Leo Yuriev
8ca23d8735
mdbx: add missing <signal.h>
...
Change-Id: I3f2d0587db84598a0157aae50cdff3361935f2b3
2017-07-26 15:11:25 +03:00
Leo Yuriev
88ca23caa5
mdbx: misc refines (minor).
...
Change-Id: Ia58e2d75e320bbd47dd352e082cf6f41afde075f
2017-07-26 12:43:54 +03:00
Leo Yuriev
1b09605a06
mdbx: clarify mdbx_filesync().
...
Change-Id: I39029a52fd44c81901aff6114a5c58a62b92098b
2017-07-26 12:43:54 +03:00
Leo Yuriev
1f7f3af16c
mdbx: minor refine mdbx_mmap().
...
Change-Id: Ic5026b6412ca93a00faeb8306975d896d85b475d
2017-07-26 12:43:54 +03:00
Leo Yuriev
f57931f614
mdbx: apply only substantial geo-changes and pre-shink while opening database.
...
Change-Id: If62ac64cc820ed0201cecf4b89ea3096029abb0a
2017-07-26 12:43:54 +03:00
Leo Yuriev
1dab822324
mdbx: growth/shrink datafile with alignment.
...
Change-Id: I46deb885654d2bb1d164009159c9364567ab88a9
2017-07-26 12:43:52 +03:00
Leo Yuriev
4f06a38a50
mdbx: use saturated pgno_add() to avoid overflows.
...
Change-Id: I70000a86a69c9b3399d0a2c345d57ca1908f2881
2017-07-26 12:41:52 +03:00
Leo Yuriev
a9927e7214
mdbx: refine page_alloc().
...
Change-Id: I9932847ef244132df9d909b41a1760a3e89288ac
2017-07-26 12:30:50 +03:00
Leo Yuriev
3d53f2ff2a
mdbx: refine mdbx_reclaiming_detent() for MDBX_UTTERLY_NOSYNC.
...
Change-Id: I7847f2b375f3792927a55c90bb26d3220e71b576
2017-07-26 12:28:27 +03:00
Leo Yuriev
94af9e02b0
mdbx: fix mdbx_env_close_ex() for MDBX_RDONLY.
...
Change-Id: I5ff79a93e026d4b40412294956dd222081a1b821
2017-07-26 12:27:34 +03:00
Leo Yuriev
ab8fa36033
mdbx: refine mdbx_meta_ot() and dependents.
...
Change-Id: I449d501f0c3710fdb906e01931e10300ab3b7c9d
2017-07-26 12:26:02 +03:00
Leo Yuriev
0b07749fba
mdbx: major fix - madvise(MADV_REMOVE) only for exclusive mode.
...
Change-Id: I6799df7b85eaf32a1c46f251ca64a4df4ff092b2
2017-07-26 12:09:57 +03:00
Leo Yuriev
a3ee20e4f6
mdbx: more NUM_METAS inside mdbx_chk and mdbx_stat.
...
Change-Id: I93f4fddcff6b038c5a5143e52c7db233e77ec30b
2017-07-26 12:09:57 +03:00
Leo Yuriev
9e473ab6f2
mdbx: remove obsolete mlock().
...
Change-Id: I23df282d545eac9dd7bf9df1bd71dedbccc45cfd
2017-07-26 12:09:57 +03:00
Leo Yuriev
4fa4129add
mdbx: cleanup freelist_save().
...
Change-Id: I552e6d7edac61e66b8954f6b58485d6b07194ab5
2017-07-26 12:09:57 +03:00
Leo Yuriev
1babb0a4f7
mdbx: don't put loose pages into befree in lifo mode.
...
Change-Id: Ibb409e3447e42f1b9f38ed0a33ecb7715fa54d31
2017-07-26 12:09:57 +03:00
Leo Yuriev
ad48fd54fb
mdbx: minor refine freelist_save().
...
Change-Id: Ifed9b8d363d45d24c44c1b0a803dad34aada96d3
2017-07-26 12:09:57 +03:00
Leo Yuriev
3ba5bebec4
mdbx: refine mdbx_txl_alloc().
...
Change-Id: I624a92c8a845ab563f13619b3638227d012a780b
2017-07-26 12:09:57 +03:00
Leo Yuriev
d5a8bcebbf
mdbx: preserve current meta-extra fields/flags.
...
Change-Id: Id458a85178839bd196435891633c4dd1f3a51d45
2017-07-23 21:33:17 +03:00
Leo Yuriev
58f7674fa5
mdbx: fix mdbx_set_attr().
...
Change-Id: I6628a0629a17f99f39098b8ccb76259cd65dd353
2017-07-23 21:07:08 +03:00
Leo Yuriev
b4e0344de7
mdbx: check for oldest-aware corruption by writer in txn_renew().
...
Change-Id: I1a49e4264feb93dc84963db426b11f467f31fcf6
2017-07-23 21:07:08 +03:00
Leo Yuriev
ddc5b9f34f
mdbx: start find_oldest() from steady-point.
...
Change-Id: Icc102f98f86e557e1ccba9cd74255c3da9225d41
2017-07-23 18:39:31 +03:00
Leo Yuriev
425254aba5
mdbx-tools: hush MSVC's internal warnings.
...
Change-Id: I2b2bdb149149aa8bafff0bb7df205547f645fe10
2017-07-21 22:45:51 +03:00
Leo Yuriev
f96bb5ef4a
mdbx-tools: fix coverity issue (minor).
...
Change-Id: I8031a59336134a355ea31d6f41b241dbc176f577
2017-07-21 22:39:15 +03:00
Leo Yuriev
c5d1384c64
mdbx-tools: more fix MSVC warnings.
...
Change-Id: Ib5f78a89fea09dc78d4922519eab6eaed4b1a7e6
2017-07-21 16:54:46 +03:00
Leo Yuriev
63af619080
mdbx: #ifdef-guard for FILE_PROVIDER_EXTERNAL_INFO_V1.
...
Change-Id: I4bc4eb012f7d6ea874a10abd4a2bfcfb789c4a22
2017-07-21 15:49:05 +03:00
Leo Yuriev
242baf761f
mdbx: fix/rework shrinking, add MDBX_SHRINK_ALLOWED.
...
Change-Id: I014440850aa4be927843aa2a6a268794a4da9b2a
2017-07-21 13:55:21 +03:00
Leo Yuriev
599711a007
mdbx: fix/avoid meta-update from setup_dxb() in read-only mode.
...
Change-Id: I60359f92aba31bb5a22e9a39ea4658d2393e957d
2017-07-21 13:54:06 +03:00
Leonid Yuriev
c8a5df650b
mdbx: fix/rework exclusive-locking for Windows.
...
Change-Id: I1b129a10ed7523024481480647317f1643f2ea70
2017-07-19 14:13:31 +03:00
Leo Yuriev
17e8429a29
mdbx: rework mmap-functions for osal.
...
- add 'length' and 'current' fields to mmap-object;
- drop mdbx_mremap();
- do remap on-demand inside mdbx_mresize();
- add mdbx_mapresize() which re-creates Valgrind's region.
- call resize on txn-begin.
Change-Id: I82780f92c4947804e3f14fb7cb71ee655382f9bb
2017-07-19 14:13:31 +03:00
Leo Yuriev
53c2b0abe4
mdbx: checking and reject network/remote files.
...
Change-Id: I77e8b8bc94785d705461d162cbc40ad58ead67ca
2017-07-12 03:31:20 +03:00
Leo Yuriev
4d1df6ea11
mdbx: rework rollback on dxb-setup to avoid troubles under Windows.
2017-07-12 03:31:20 +03:00
Leo Yuriev
455de97d36
mdbx: rework using of mdbx_mmap_t and mdbx_msync().
2017-07-12 03:31:20 +03:00
Leo Yuriev
70d54f6f2c
mdbx-msvc: refine IntDir/OutDir for msbuild projects.
2017-07-12 02:21:50 +03:00
Leo Yuriev
0167694457
mdbx: building mdbx-tools for Windows.
...
Change-Id: I9019c4382b7108ec7c442d2b0d4be044a3cb136a
2017-07-12 02:20:47 +03:00
Leo Yuriev
6f00854034
mdbx: take LTO_ENABLED in account for AddressSanitizer default options.
...
Change-Id: I691eae23ca2cb60c6e2a9260ab41e3c80c8aaeb8
2017-07-07 00:45:52 +03:00
Leo Yuriev
0047ce4bd6
mdbx: add default AddressSanitizer options.
...
Change-Id: I99b7aee5010f1d43008b2a61efe3fb9bb023ab31
2017-07-07 00:02:56 +03:00
Leo Yuriev
84b4883f00
mdbx: fix returning MDBX-errors after the merge.
...
Change-Id: Id49b7f341749709cdee476c88c1066e76b6937c1
2017-07-05 19:38:39 +03:00
Leo Yuriev
d01a97f729
tools: fix minor defects (coverity).
...
Change-Id: I3a80dcb31c54718d22cdca6272aa028685956243
2017-07-04 13:21:16 +03:00
Leo Yuriev
14484a6f32
mdbx: fix minor defects (coverity).
...
Change-Id: I1a5b0788a87ab2a138b342140648642fd5855ae3
2017-07-04 13:21:16 +03:00
Leo Yuriev
beda690227
mdbx: fix resource-leak in mdbx_env_open_ex() in case of error (coverity).
...
Change-Id: I9e808e2de4a64d05205a79c9d90feacc87ec930d
2017-07-04 13:21:16 +03:00
Leo Yuriev
93d92db43d
mdbx: fix mischecking in mdbx_reader_check0() (coverity).
...
Change-Id: I2e3aaba1426c3b152a39b90f6d171380948da0a7
2017-07-04 13:21:16 +03:00
Leo Yuriev
bf8507f3ec
mdbx: fix mdbx_env_info() to avoid null-deref in lck-free mode (coverity).
...
Change-Id: Ica8fe6c7f5a18af3a4d7d38ce8a1a092d5f1b2f7
2017-07-04 11:45:48 +03:00
Leo Yuriev
aec35300c4
mdbx: fix new API function after the merge.
...
Change-Id: Ic929444ceb137ccaa2ab4fe82b4f93a3cb5a92aa
2017-07-04 10:46:46 +03:00
Leo Yuriev
b34e92d308
mdbx: cleanup/reformat after the merge.
...
Change-Id: I3e0fe8f1292a6387e8d3ff8b904170f05d8e1770
2017-07-04 10:35:32 +03:00
Leo Yuriev
594834bc9c
mdbx: Merge branch 'nexenta' into devel.
...
Change-Id: I7a00f98e088f21ebc91a3861309b697f01e1fa66
2017-07-04 09:22:09 +03:00
Leo Yuriev
3c5ae4cc9c
mdbx: disable C4548 as workaround for buggy WinSDK 10.0.10240.0
2017-07-03 12:50:48 +03:00
Leo Yuriev
78ae12aa10
mdbx: fix MSVC 'padding' warnings, minor refine fields ordering.
2017-07-03 11:41:24 +03:00
Leo Yuriev
1d702aa94f
mdbx: more warning control for MSVC.
2017-07-03 06:45:41 +03:00
Leonid Yuriev
3e6a672286
mdbx: fix MSVC warnings, add uint16-range-asserts.
...
Change-Id: Ie67a728035eeae250efbf962270b5c17c974db23
2017-07-03 04:41:00 +03:00
Leo Yuriev
2ed74ee78f
mdbx: fix MSVC size_t/uint64_t warnings (minor).
...
Change-Id: I580eea87e9c557c61b1ff0b66feaafce139d2c45
2017-06-30 07:25:56 +03:00
Leo Yuriev
186d2ee065
mdbx: add 'mti_reader_finished_flag' for speedup find_oldesd().
...
Change-Id: I4a2c8b80efad0cfc12918969125d258043cbffba
2017-06-30 00:43:11 +03:00
Leo Yuriev
acfa096aba
mdbx: more for lockless/readonly mode (testing needed).
...
Change-Id: I28f46f5a373212ebb5df780f4d2b5e216d8cdae2
2017-06-30 00:43:11 +03:00
Leo Yuriev
5fbb8d1018
mdbx: fix C11 warnings abount atomic.
2017-06-24 19:33:34 +03:00
Leonid Yuriev
ca83480c34
mdbx: pragma lib ntdll.lib
2017-06-21 01:42:41 +03:00
Leo Yuriev
9a2fff91f3
mdbx: dynamic mapsize/geometry and API (mostly done).
...
Change-Id: Ifb768ff3207cae1755c53c211a3ae552c6455e12
2017-06-21 01:42:41 +03:00