projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a97dc1
)
csync_statedb: (really) Make sure children of non-synced items aren't read from the DB
author
Jocelyn Turcotte
<jturcotte@woboq.com>
Thu, 7 Sep 2017 08:26:19 +0000
(10:26 +0200)
committer
Roeland Jago Douma
<roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:04 +0000
(22:01 +0200)
No tests are covering this and I reversed the original logic.
src/csync/csync_statedb.cpp
patch
|
blob
|
history
diff --git
a/src/csync/csync_statedb.cpp
b/src/csync/csync_statedb.cpp
index 3b0b33535f79429ee88e47c4b55ad221c2f6a6f0..4d2598f79af350ef35dcbe3377191025a494acd9 100644
(file)
--- 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.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());
}