901 Commits

Author SHA1 Message Date
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 b6f14780e381300beaf782fa74252b791aae082e
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 4e40af60e74143aedaa8d295f0f33a3c892a1c9b (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 4e40af60e74143aedaa8d295f0f33a3c892a1c9b (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
Leo Yuriev
dc31d7d1a3 mdbx: fix shrinking below a lower-bound.
Change-Id: Ia6d497e2d7c6d7ee646b23b8df944a01d96445fc
2017-09-26 19:37:34 +03:00
Leo Yuriev
86a15f4ef1 mdbx: IMPENDING CHANGES WARNING.
Change-Id: I2ea6ec8adb14f60794db7872a6fce4e72774d1c3
2017-09-17 15:33:21 +03:00
Leo Yuriev
f518c48dfe mdbx: add Acknowledgements.
Change-Id: I085c66fb11f3ad107d8c3577fcfad38833e60340
2017-09-17 15:07:32 +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
5f90052274 mdbx: Merge branch 'devel'. 2017-09-05 21:06:21 +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
928014c88a mdbx: fix coverity warning (minor).
Change-Id: Iaa4f8d6611139a9c500b3d803c7fe1fbcc8591e1
2017-09-01 17:43:07 +03:00
Leo Yuriev
cf5c1d274d mdbx: Merge branch 'devel'. 2017-09-01 17:26:49 +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
876faab1d8 mdbx: fix mode_t typedef.
Fix https://github.com/leo-yuriev/libmdbx/issues/15

Change-Id: I32bb6b0fbc710c3706a66b398711c29cb6b9a241
2017-08-16 11:19:25 +03:00
Leo Yuriev
728252058d mdbx: fix/refine comment.
Change-Id: I8f09ca755ebcc1e58531504a8998391e7a3c8c9a
2017-08-16 09:29:30 +03:00
Leo Yuriev
276e3578da mdbx: fix tutorial/sample-mdbx.c
Fix/refine b0dc98bec0281cc0987253d9e498cdb117a80100

Change-Id: Ie5b1cf9453261c5e1cdfc4880ce9dafdcc4545f7
2017-08-16 09:29:30 +03:00
dreamsxin
b0dc98bec0 mdbx: add tutorial/sample-mdbx.c and drop obsolete sample-mdb.txt.
Also this is a testcase for https://github.com/leo-yuriev/libmdbx/issues/11.

Change-Id: I95c876b1120c1479b2e740b43f6c60e2ac8b33c1
2017-08-16 09:15:46 +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
be5bbea281 mdbx: more update links after move the repo.
Change-Id: Ifdcfd23c78e1c843a93e9b41cd024b0ff9f866be
2017-08-12 11:19:03 +03:00
Leo Yuriev
d21340b304 mdbx: Merge branch 'devel'. 2017-08-09 12:52:28 +03:00
Leo Yuriev
0dc145aa2d mdbx: fix typo and endif comment.
Change-Id: Iae7ae3ce55698c1d6f03111b7d1945f3ac4e9394
2017-08-08 23:42:45 +03:00
Leo Yuriev
fff54697ea mdbx: Merge branch 'devel'.
Change-Id: Ifd2611833b16449bb7b0cc89ceb91d919bab445b
2017-07-30 00:58:11 +03:00