1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/ldb/tests
Gary Lockyer b6b5b5fe35 lib ldb key value: fix index buffering
As a performance enhancement the key value layer maintains a cache of
the index records, which is written to disk as part of a prepare commit.
This patch adds an extra cache at the operation layer to ensure that the
cached indexes remain consistent in the event of an operation failing.

Add test to test for index corruption in a failed modify.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2019-06-21 04:27:13 +00:00
..
python lib ldb key value: fix index buffering 2019-06-21 04:27:13 +00:00
schema-tests
guidindexpackv1.ldb ldb: python test for repack 2019-05-29 04:41:24 +00:00
init_slapd.sh
init.ldif
kill_slapd.sh
ldapi_url.sh
ldb_key_value_sub_txn_mdb_test.valgrind lib ldb ldb_key_value tests: Add tests for wrapped operations 2019-06-21 04:27:12 +00:00
ldb_key_value_sub_txn_test.c lib ldb ldb_key_value tests: Add tests for wrapped operations 2019-06-21 04:27:12 +00:00
ldb_key_value_test.c lib ldb key_value: Set index cache size on open 2019-04-04 06:40:17 +00:00
ldb_kv_ops_test.c lib ldb ldb_key_value tests: Add tests for wrapped operations 2019-06-21 04:27:12 +00:00
ldb_kv_ops_test.valgrind lib ldb ldb_key_value tests: Add tests for wrapped operations 2019-06-21 04:27:12 +00:00
ldb_lmdb_size_test.c ldb_mdb/tests: Add tests to check for max key length and DB size 2018-05-23 02:27:11 +02:00
ldb_lmdb_test.c lib ldb: move key value code to lib/ldb/ldb_key_value 2018-07-30 14:31:54 +02:00
ldb_match_test.c CVE-2019-3824 ldb: Add tests for ldb_wildcard_match 2019-02-25 21:26:12 +01:00
ldb_match_test.valgrind CVE-2019-3824 ldb: Add tests for ldb_wildcard_match 2019-02-25 21:26:12 +01:00
ldb_mod_op_test.c ldb: ldb_key_value_test fix 2019-05-22 04:42:29 +00:00
ldb_msg.c Fix uClibc build on 64bit platforms by including stdint.h 2018-08-24 17:22:09 +02:00
ldb_no_lmdb_test.c Enable make test even without lmdb 2019-03-06 03:16:14 +00:00
ldb_parse_test.c ldb: Avoid read beyond buffer 2019-05-30 07:12:11 +00:00
ldb_tdb_test.c Fix uClibc build on 64bit platforms by including stdint.h 2019-05-19 17:34:20 +00:00
photo.ldif
samba4.png
sample_module.c ldb:tests/sample_module: don't be lazy and use ldb_msg_copy_shallow/ldb_build_add_req 2015-03-20 20:43:12 +01:00
slapd.conf
start_slapd.sh
test_ldb_dn.c ldb: Add new function ldb_dn_add_child_val() 2018-08-15 07:08:24 +02:00
test_ldb_qsort.c Fix uClibc build on 64bit platforms by including stdint.h 2019-05-19 17:34:20 +00:00
test-attribs.ldif
test-config.ldif
test-controls.sh
test-default-config.ldif
test-dup-2.ldif
test-dup.ldif
test-extended.sh
test-generic.sh LDB:test-generic.sh - fix smaller/greater comparison tests 2017-12-19 03:09:12 +01:00
test-index.ldif
test-ldap.sh
test-modify-modrdn.ldif
test-modify-unmet-2.ldif
test-modify-unmet.ldif
test-modify.ldif
test-schema.sh
test-soloading.sh
test-sqlite3.sh
test-tdb-features.sh ldb: Add test for behaviour of rdn_name 2016-12-01 05:54:23 +01:00
test-tdb-subunit.sh
test-tdb.sh ldb: Run the Python testsuite 2015-11-05 18:04:23 +01:00
test-wildcard.ldif
test-wrong_attributes.ldif
test.ldif
testdata.txt
testsearch.txt