mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
500c6e194b
Updating ctdb.tdb on each add-client, del-client and each delete during notify was too ambitious. Persistent transactions do not perform well enough to do this. Revert to having add-client and del-client create touch files. Each monitor event calls "statd-callout update" to convert touch files into ctdb.tdb records. Update testcases to do the "update" and add an extra test. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
17 lines
318 B
Bash
Executable File
17 lines
318 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "2 x add-client, update"
|
|
|
|
setup_ctdb
|
|
|
|
FAKE_DATE_OUTPUT="1234565789"
|
|
|
|
ok_null
|
|
simple_test_event "add-client" "192.168.123.45"
|
|
simple_test_event "add-client" "192.168.123.46"
|
|
simple_test_event "update"
|
|
|
|
check_ctdb_tdb_statd_state "192.168.123.45" "192.168.123.46"
|