FolderWatcher: ignore the csync journal

This commit is contained in:
Olivier Goffart 2014-02-04 14:57:25 +01:00
parent 086694f284
commit e06cfe06fe
3 changed files with 4 additions and 4 deletions

View File

@ -109,6 +109,7 @@ bool FolderWatcher::pathIsIgnored( const QString& path )
void FolderWatcher::changeDetected( const QString& path )
{
qDebug() << Q_FUNC_INFO << path;
// Check if the same path was reported within the last second.
if( path == _lastPath && _timer.elapsed() < 1000 ) {
// the same path was reported within the last second. Skip.

View File

@ -173,8 +173,7 @@ void FolderWatcherPrivate::slotReceivedNotification(int fd)
// Note: The name of the changed file and stuff could be taken from
// the event data structure. That does not happen yet.
if (event->len > 0 && event->wd > -1) {
const QString p = _watches[event->wd];
_parent->changeDetected(p);
_parent->changeDetected(QString::fromLocal8Bit(event->name));
}
// increment counter

View File

@ -5,8 +5,8 @@
*.unison*
*csync_timedif.ctmp*
csync_journal.db
csync_journal.db.ctmp
.csync_journal.db
.csync_journal.db.ctmp
.*.sw?
.*.*sw?
].csync-progressdatabase