From 39471bd8aaf873c3a126d50c486414f97ee4ea7d Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Wed, 24 Nov 2010 10:49:29 +0000 Subject: [PATCH] do not repeat on rsync exitcode 12 --- lsyncd.lua | 4 ++-- tests/randrsync.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lsyncd.lua b/lsyncd.lua index bfe8148..7833330 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -2446,7 +2446,7 @@ local rsync_exitcodes = { [ 6] = "again", [ 10] = "again", [ 11] = "again", - [ 12] = "again", +-- [ 12] = "again", -- dont consistent failure, if e.g. target dir not there. [ 14] = "again", [ 20] = "again", [ 21] = "again", @@ -2494,7 +2494,7 @@ local default_rsync = { local config = inlet.getConfig() spawn(elist, "/usr/bin/rsync", "<", names, - "-vv", + "-v", "--delete", config.rsyncOps, "-r", "--include-from=-", diff --git a/tests/randrsync.lua b/tests/randrsync.lua index 615f363..ecb5cd7 100755 --- a/tests/randrsync.lua +++ b/tests/randrsync.lua @@ -16,7 +16,7 @@ local trgdir = tdir.."trg/" posix.mkdir(srcdir) posix.mkdir(trgdir) -local pid = spawn("./lsyncd","-nodaemon","-rsync",srcdir,trgdir) +local pid = spawn("./lsyncd","-nodaemon","-rsync",srcdir,trgdir,"-log","all") cwriteln("waiting for Lsyncd to startup") posix.sleep(1) @@ -271,7 +271,7 @@ for ai=1,100 do end cwriteln("waiting for Lsyncd to finish its jobs.") -posix.sleep(10) +posix.sleep(20) cwriteln("killing the Lsyncd daemon") posix.kill(pid)