Commit Graph

922 Commits

Author SHA1 Message Date
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 b0dc98bec0

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
Leo Yuriev
71822ee6ba mdbx: fix README typos.
Change-Id: I99b70c564172e44b297c34bdafd97053d5aebf3e
2017-07-29 23:06:26 +03:00
Leo Yuriev
b839352e52 libmdbx: update links after move the repo.
Change-Id: I2bc4154af521ef8e85d0abb9f986a22c39b4d297
2017-07-29 22:47:55 +03:00
Leo Yuriev
234901d8aa mdbx: Merge branch 'devel'. 2017-07-28 21:56:43 +03:00
Leo Yuriev
7b8a1c9794 mdbx: fix typo.
Change-Id: Ib491469a2a7ebb6bdadf995fa3a964d23fdf7036
2017-07-28 21:53:15 +03:00
Leo Yuriev
b91dbcad57 mdbx: Merge branch 'devel'. 2017-07-28 14:49:48 +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
7982ff6e0d mdbx: Merge branch 'devel'. 2017-07-27 19:14:55 +03:00
Leo Yuriev
ffa8f55354 mdbx: update TODO and README (refunding of free pages).
Change-Id: I0c71fb84e42dc62b7b87191bd7b32b496447c60a
2017-07-27 18:38:55 +03:00
Leo Yuriev
7149285187 mdbx: temporary add solib-stat into README.
Change-Id: Ia280670a70469c2d0a0f2883e42914198e005d19
2017-07-27 18:18:22 +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
Leo Yuriev
4eada0f2b6 mdbx: Merge branch 'devel'. 2017-07-26 19:44:14 +03:00
Leo Yuriev
d634336e1f mdbx-test: fix snprintf/vsnprintf redefinition for MSVC.
Change-Id: I4be3a4f71782d395035ff4d5b9e3a1af9ee70bb9
2017-07-26 19:43:22 +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