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
8d4e212630
mdbx: update README
...
Change-Id: If8956085ce160d27ee7a22215183a52706efb3c8
2018-01-08 18:49:53 +03:00
Leo Yuriev
f06e1de000
mdbx: update README.md
...
Change-Id: I55b1704c4116b2e05473018cb7bf378810b94071
2018-01-08 18:49:21 +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
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
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
e68cce8412
mdbx: refine README.
2017-11-15 19:14:14 +03:00
Leo Yuriev
a63c18261a
mdbx-bench: add 'bench-quartet' target.
2017-11-13 20:36:23 +03:00
Leo Yuriev
c72bc2e122
mdbx-bench: add other KV-drivers from ioarena.
...
Change-Id: I5a68d17d39d97aa18d6415dbd5994f2a34c178b1
2017-10-29 12:33:46 +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
03db768830
mdbx-bench: rename log-file instead of remove it in case of error.
2017-10-27 18:26:59 +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
f9b1bbe1e3
mdbx-bench: minors for calling ioarena.
2017-10-27 00:25:51 +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
32c5c3b761
mdbx-tests: refine after last pull-request.
...
Refine after 4e40af60e7
(Merge pull request #20 from rouzier/feature/txn_try).
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
Leo Yuriev
875d22ff38
mdbx: add James Rouzier into AUTHORS.
...
Change-Id: Ia6e4a7ac3d5d8a88b0b7fd3b72be74491f57c93c
2017-10-26 12:05:00 +03:00
Leonid Yuriev
4e40af60e7
Merge pull request #20 from rouzier/feature/txn_try
...
mdbx: non-blocking begin/try write-txn (feature).
2017-10-26 11:52:11 +03:00
James Rouzier
531ac06fda
Add try.c to libmdbx.files
2017-10-25 21:02:03 -04:00
James Rouzier
0d81f2244c
Add try.cc to compile for windows
2017-10-25 21:01:19 -04:00
James Rouzier
088e811da4
Add test case for txn try
2017-10-25 20:56:12 -04:00
James Rouzier
2f1f4b19a0
Update test to accept flags instead of a bool
2017-10-25 19:54:43 -04: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