]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
Simplify the root status logic
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 28 Apr 2016 17:33:55 +0000 (19:33 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 3 May 2016 11:01:51 +0000 (13:01 +0200)
commit7bfe46962fe59ef0a6588469c8a064805b4b4eda
treee91ca9d9dc2e6d8038efc3a0b630f3659f3a0451
parent32b3023a8e140d5a202e2ef23961e2ab616b092e
Simplify the root status logic

Go through fileStatus like other cases to make sure that all use
cases go through the same code path. This also makes sure to use
lookupProblem which will use lower_bound which is more efficient
for larger sets of sync problems.

This also fixes the issue with lookupProblem that prevented it to
properly match an empty pathToMatch, caused by the fact that the
problem map contains relative paths not starting with a slash.
src/libsync/syncfilestatustracker.cpp
src/libsync/syncfilestatustracker.h