1 Apr 2008 01:46
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-577-ga7499e9
Jeremy Allison <jra <at> samba.org>
2008-03-31 23:46:54 GMT
2008-03-31 23:46:54 GMT
The branch, v3-2-test has been updated
via a7499e994aef743ea9c443f9a1618b262f6eda93 (commit)
from 3cb1cdee9307cafa80ab95233a536f5dd7882ff1 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit a7499e994aef743ea9c443f9a1618b262f6eda93
Author: Jeremy Allison <jra <at> samba.org>
Date: Mon Mar 31 16:46:20 2008 -0700
Reduce the race condition in Samba4 in RAW-RENAME test. We rename a file
using trans2 setfileinfo on one connection, and then check the
file name has changed on the other. In Samba we achieve this by
sending a local message to the other process. This change causes
us to re-scan for incoming messages after we've woken up from the
select (which is cheap if there are no pending messages). This reduces
the race significantly. Volker please review.
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/smbd/process.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/smbd/process.c b/source/smbd/process.c
index 9c01bba..03216a0 100644
(Continue reading)
. I think I've found the correct
place for it now where it will cause minimal disruption (only
call the extra message_dispatch just before reading the next
smb off the wire).
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/smbd/process.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/smbd/process.c b/source/smbd/process.c
index 9aa775d..8868431 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
<at> <at> -873,15 +873,6 <at> <at> static NTSTATUS receive_message_or_smb(TALLOC_CTX *mem_ctx, char **buffer,
RSS Feed