mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
csync_statedb: (really) Make sure children of non-synced items aren't read from the DB
No tests are covering this and I reversed the original logic.
This commit is contained in:
parent
92fc50d4b0
commit
a18a601291
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ int csync_statedb_get_below_path( CSYNC *ctx, const char *path ) {
|
|||
st.reset();
|
||||
rc = _csync_file_stat_from_metadata_table(st, stmt);
|
||||
if( st ) {
|
||||
if( st->path.startsWith(skipbase) )
|
||||
if( !st->path.startsWith(skipbase) )
|
||||
break;
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "%s selective sync excluded because the parent is", st->path.constData());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue