Commit graph

21 commits

Author SHA1 Message Date
Damien George
85373b548f all: Remove advertising clause in BSD 4-clause license.
As per the included README.Impt.License.Change, this advertising clause
does not need to be met and can be removed:

    Accordingly, the foregoing paragraph of those BSD Unix files containing
    it is hereby deleted in its entirety.

Signed-off-by: Damien George <damien@micropython.org>
2024-03-15 18:53:28 +11:00
Damien George
69a39c98de all: Remove "tags" files.
They can be generated as needed by editors.

This also removes the last remaining symlinks.

Signed-off-by: Damien George <damien@micropython.org>
2024-03-15 18:53:16 +11:00
Damien George
7eff5dd76e all: Move headers to library-specific directory include/berkeley-db.
Signed-off-by: Damien George <damien@micropython.org>
2024-03-15 18:53:07 +11:00
Paul Sokolovsky
35aaec4418 btree/btree.h: Allow to override MINCACHE, DEFPSIZE. 2017-09-10 13:50:50 +03:00
Paul Sokolovsky
78a4787948 btree: Introduce default page size param, set to 4096.
This is kind of workaround for issues found with handling overflow pages.
Setting default page size will make a less chance for user to hit them.
2016-08-09 02:08:14 +03:00
Paul Sokolovsky
2328ab24e8 btree: __bt_open: Remove unused "mode" and "flags" arguments. 2016-07-29 23:42:18 +03:00
Paul Sokolovsky
65ae6f4fc3 btree: Refactor to call file operation via vtable. 2016-07-29 23:41:17 +03:00
Paul Sokolovsky
7b31cae3c0 btree/bt_overflow.c: Use memcpy instead of memmove where possible. 2016-06-15 02:36:33 +03:00
Paul Sokolovsky
66164eb46d btree/bt_seq.c: Avoid to return NULL where enumeration constant is expected. 2016-06-15 02:36:28 +03:00
Paul Sokolovsky
1d28f37d1b btree/bt_split.c: Avoid accessing a word via unaligned address. 2016-06-15 02:36:28 +03:00
Paul Sokolovsky
a11216f356 btree/bt_split.c: Fix parens around && in || warning. 2016-06-15 02:36:28 +03:00
Paul Sokolovsky
7eae88acd1 btree/bt_split.c: Fix uninitialized var warning. 2016-06-15 02:36:28 +03:00
Paul Sokolovsky
fd456d4845 btree/bt_open.c: Fix parens around & warning. 2016-06-15 02:36:28 +03:00
Paul Sokolovsky
b19ad9066d btree/bt_seq.c: Fix uninitialized var warning. 2016-06-15 02:36:28 +03:00
Paul Sokolovsky
e02d0643d6 btree/bt_put.c: Fix braces around enclosed if/else warning. 2016-06-15 02:36:28 +03:00
Paul Sokolovsky
e4c57686e6 btree/bt_put.c: Fix uninitialized var warning. 2016-06-15 02:07:16 +03:00
Paul Sokolovsky
05aba58c4c btree/bt_delete.c: Fix uninitialized var warning. 2016-06-15 02:06:07 +03:00
Paul Sokolovsky
166c1a12a2 btree/bt_page.c: Apply patch.1.4: Be sure to save updates to bt_free.
"The metadata page for DB 1.85 B+tree databases is not correctly
maintained in some circumstances."

http://download.oracle.com/berkeley-db/patches/db/1.85/patch.1.4
2016-06-15 01:28:56 +03:00
Paul Sokolovsky
dfee4c7a23 btree/bt_split.c: Apply patch.1.3: Include sizeof(indx_t) in size calcs.
"DB 1.85 core dumps on certain data sets when using the B+tree access
method."

http://download.oracle.com/berkeley-db/patches/db/1.85/patch.1.3
2016-06-15 01:28:38 +03:00
Paul Sokolovsky
fe7294a119 btree/bt_split.c: Apply patch.1.2: Check for last page in a condition.
"DB 1.85 core dumps on certain data sets when using the B+tree access
method."

http://download.oracle.com/berkeley-db/patches/db/1.85/patch.1.2
2016-06-15 01:27:40 +03:00
Paul Sokolovsky
6dc9d673a4 Import Berkeley DB 1.85.
From http://download.oracle.com/berkeley-db/db.1.85.tar.gz .
2016-06-14 02:12:14 +03:00