diff options
author | Jeremy Allison <jra@samba.org> | 2006-04-06 22:31:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:55 -0500 |
commit | 4ee43dbd477140bd4bf6c42d156dc0a736994da2 (patch) | |
tree | 8d62323656974e513bb47293f895b38393de85ff /source3/tdb/tdbtorture.c | |
parent | ca09263d00c7c5493f4ab7214c7cfb2cf8a28eea (diff) | |
download | samba-4ee43dbd477140bd4bf6c42d156dc0a736994da2.tar.gz samba-4ee43dbd477140bd4bf6c42d156dc0a736994da2.tar.bz2 samba-4ee43dbd477140bd4bf6c42d156dc0a736994da2.zip |
r14954: Fix #3569 based on William Jojo's work. AIX also
has the linear posix locking issue which causes
CLEAR_IF_FIRST to cause performance problems.
As we know we're in a daemon architecture with
long-lived parent we can avoid this in the Samba
case. Add a comment explaining this.
Jeremy.
(This used to be commit 3cd5c3df0d1b98dfa90663973ab13b5d3dbf737e)
Diffstat (limited to 'source3/tdb/tdbtorture.c')
-rw-r--r-- | source3/tdb/tdbtorture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/tdb/tdbtorture.c b/source3/tdb/tdbtorture.c index d03cc2a610..2d367b91e1 100644 --- a/source3/tdb/tdbtorture.c +++ b/source3/tdb/tdbtorture.c @@ -103,7 +103,7 @@ static void addrec_db(void) #if REOPEN_PROB if (random() % REOPEN_PROB == 0) { - tdb_reopen_all(); + tdb_reopen_all(1); goto next; } #endif @@ -192,7 +192,7 @@ int main(int argc, char *argv[]) for (i=0;i<NPROC;i++) { pids[i] = fork(); if (pids[i] == 0) { - tdb_reopen_all(); + tdb_reopen_all(1); tdb_logging_function(db, tdb_log); |