From 7a97dc178365477115091f8105ff78fe4b35c842 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Thu, 7 Sep 2017 10:16:16 +0200 Subject: [PATCH] csync_statedb: Make sure children of non-synced items aren't read from the DB Fix a regression during C++ conversion from 704ca366b38391c0ef56e090561b4a3a158307fb --- src/csync/csync_statedb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csync/csync_statedb.cpp b/src/csync/csync_statedb.cpp index 523767dc4..3b0b33535 100644 --- a/src/csync/csync_statedb.cpp +++ b/src/csync/csync_statedb.cpp @@ -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 == skipbase ) + if( st->path.startsWith(skipbase) ) break; CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "%s selective sync excluded because the parent is", st->path.constData()); }