nextcloud-desktop/csync/src
Christian Kamm c5a0ce5a43 Selective sync: Skip excluded folders when reading db
When a new folder becomes selective-sync excluded, we already mark it
and all its parent folders with _invalid_ etags to force rediscovery.

That's not enough however. Later calls to csync_statedb_get_below_path
could still pull data about the excluded files into the remote tree.

That lead to incorrect behavior, such as uploads happening for folders
that had been explicitly excluded from sync.

To fix the problem, statedb_get_below_path is adjusted to not read the
data about excluded folders from the database.

Currently we can't wipe this data from the database outright because we
need it to determine whether the files in the excluded folder can be
wiped away or not.

See owncloud/enterprise#1965
2017-05-16 13:58:45 +02:00
..
std Fix the MSVC build 2016-09-16 17:43:39 +02:00
vio Fix the MSVC build 2016-09-16 17:43:39 +02:00
CMakeLists.txt Fix the MSVC build 2016-09-16 17:43:39 +02:00
csync_exclude.c Don't use the StopWatch for each job in production builds #5456 2017-01-26 17:13:54 +01:00
csync_exclude.h Don't use the StopWatch for each job in production builds #5456 2017-01-26 17:13:54 +01:00
csync_log.c Fix the MSVC build 2016-09-16 17:43:39 +02:00
csync_log.h Compile with GCC 5 2015-05-07 01:15:55 +02:00
csync_macros.h SyncEngine: Handle 403 Forbidden properly. 2015-11-18 15:31:55 +01:00
csync_misc.c Fix the MSVC build 2016-09-16 17:43:39 +02:00
csync_misc.h Fix the MSVC build 2016-09-16 17:43:39 +02:00
csync_private.h Fix the UNIT_TESTING build on Windows 2017-02-14 14:32:41 +01:00
csync_reconcile.c Doc: Add sync algorithm overview and comments (#5277) 2016-11-08 16:10:55 +01:00
csync_reconcile.h Fix the MSVC build 2016-09-16 17:43:39 +02:00
csync_rename.cc SyncEngine: Fix renaming a folder should keep the selective sync state 2016-10-11 14:38:25 +02:00
csync_rename.h SyncEngine: Fix renaming a folder should keep the selective sync state 2016-10-11 14:38:25 +02:00
csync_statedb.c Selective sync: Skip excluded folders when reading db 2017-05-16 13:58:45 +02:00
csync_statedb.h Fix the UNIT_TESTING build on Windows 2017-02-14 14:32:41 +01:00
csync_time.c Fix the MSVC build 2016-09-16 17:43:39 +02:00
csync_time.h Fix the MSVC build 2016-09-16 17:43:39 +02:00
csync_update.c Discovery: Add branding option to disable default sync of 'M' directories 2017-01-27 15:59:59 +01:00
csync_update.h SyncEngine: Use QNAM for csync_update 2015-01-20 18:27:25 +01:00
csync_util.c csync: Use an explicit instruction for should_update_metadata 2016-08-17 15:39:31 +02:00
csync_util.h Fix the MSVC build 2016-09-16 17:43:39 +02:00
csync_version.h.in Use identical User Agents for csync and the Qt parts 2015-04-16 20:58:51 +02:00
csync.c Merge branch 'master' into dbjournal_per_account 2016-11-23 16:47:56 +01:00
csync.h Fix up SSL client certificates #5213 #69 (#5289) 2017-01-02 08:34:02 +01:00