Author: vlendec
Date: 2007-05-15 08:01:30 +0000 (Tue, 15 May 2007)
New Revision: 22886

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22886

Log:
Workaround to make RAW-NOTIFY a bit more reliable against Samba3. It
might take a bit for events to propagate from one to another connection,
in particular with a process per connection.

Modified:
   branches/SAMBA_4_0/source/torture/raw/notify.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/notify.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/notify.c      2007-05-15 08:00:49 UTC 
(rev 22885)
+++ branches/SAMBA_4_0/source/torture/raw/notify.c      2007-05-15 08:01:30 UTC 
(rev 22886)
@@ -137,6 +137,7 @@
        smbcli_rmdir(cli2->tree, BASEDIR "\\subdir-name");
        smbcli_mkdir(cli2->tree, BASEDIR "\\subdir-name");
        smbcli_rmdir(cli2->tree, BASEDIR "\\subdir-name");
+       msleep(200);
        req = smb_raw_changenotify_send(cli->tree, &notify);
        status = smb_raw_changenotify_recv(req, mem_ctx, &notify);
        CHECK_STATUS(status, NT_STATUS_OK);

Reply via email to