diff options
author | Volker Lendecke <vl@samba.org> | 2017-12-11 17:32:40 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-12-12 20:37:08 +0100 |
commit | 18c2c5918e70a5a1eeaf72aa6e6b4cc47334d093 (patch) | |
tree | 1c15ed652a3a4bea87a3b4e44c5155e68292e84e /source3/modules/vfs_aio_fork.c | |
parent | 4091179ca890b095ef17f59b2bf008ae0a13a3bf (diff) | |
download | samba-18c2c5918e70a5a1eeaf72aa6e6b4cc47334d093.tar.gz |
vfs_aio_fork: Use a shorter random delay
Otherwise the rw2 test takes ages for no good reason
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/modules/vfs_aio_fork.c')
-rw-r--r-- | source3/modules/vfs_aio_fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 40fba4dbdc0..a0b1429132a 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -331,7 +331,7 @@ static void aio_child_loop(int sockfd, struct mmap_area *map) * common parent state */ generate_random_buffer(&randval, sizeof(randval)); - msecs = randval + 20; + msecs = (randval%20)+1; DEBUG(10, ("delaying for %u msecs\n", msecs)); smb_msleep(msecs); } |