From dda01cea55fefd450b3de5e8bacb99f264b62486 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 9 Mar 2004 02:24:14 +0000 Subject: handle incomplete load files change default timelimit to 600 secs (This used to be commit c5c75a6adab10e35584dca760586fda333ca5308) --- source4/torture/nbench/nbio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/torture/nbench/nbio.c') diff --git a/source4/torture/nbench/nbio.c b/source4/torture/nbench/nbio.c index 819383b7d8..4ce3ea011b 100644 --- a/source4/torture/nbench/nbio.c +++ b/source4/torture/nbench/nbio.c @@ -22,7 +22,7 @@ #include "includes.h" -#define MAX_FILES 1000 +#define MAX_FILES 100 extern int nbench_line_count; static int nbio_id; @@ -557,6 +557,10 @@ void nb_deltree(const char *dname) { int total_deleted; + smb_raw_exit(c->session); + + ZERO_STRUCT(ftable); + total_deleted = cli_deltree(c->tree, dname); if (total_deleted == -1) { @@ -570,7 +574,6 @@ void nb_deltree(const char *dname) void nb_cleanup(const char *cname) { char *dname = NULL; - smb_raw_exit(c->session); asprintf(&dname, "\\clients\\%s", cname); nb_deltree(dname); free(dname); -- cgit