ayourtch / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

Duplicate calls of rsync if multiple files in directory change at the same time #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run lsync on a directory
2. copy a bunch of file to that directory (with 'cp')
3. profit!

What is the expected output? What do you see instead?

I expect lsync to run rsync only once. Instead I see this:

Tue Sep 22 17:06:35 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTB:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:36 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTA:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:36 2009: event CLOSE_WRITE:c6.gif triggered.
Tue Sep 22 17:06:36 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTB:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:36 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTA:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:37 2009: event CLOSE_WRITE:c29.gif triggered.
Tue Sep 22 17:06:37 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTB:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:37 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTA:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:37 2009: event CLOSE_WRITE:c40.gif triggered.
Tue Sep 22 17:06:37 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTB:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:38 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTA:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:38 2009: event CLOSE_WRITE:index.htm triggered.
Tue Sep 22 17:06:38 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTB:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:39 2009: rsyncing
/data/sites/jboek/productie/code/include/vogoo/img/ -->
user@HOSTA:/data/sites/jboek/productie/code/include/vogoo/img/
Tue Sep 22 17:06:39 2009: event CLOSE_WRITE:c30.gif triggered.

Repeating of rsync calls that are all the same.

What version of the product are you using? On what operating system?

1.26, Debian 

Original issue reported on code.google.com by crew...@gmail.com on 22 Sep 2009 at 3:10

GoogleCodeExporter commented 9 years ago
Version 1.33 fixes this!

Original comment by axk...@gmail.com on 11 Jul 2010 at 7:47