Don't use depth infinity anymore to get the folders e2ee status
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 20 Oct 2020 15:05:57 +0000 (17:05 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 21 Oct 2020 08:00:59 +0000 (10:00 +0200)
commit10cb4170c7354c919a415f1082cf7bb0618ef988
tree35484b5aa5824fbb5d27ccb2af54025b7eee2dfd
parentb5fdbefb0e7aabfc47ce1366b46912fbc41aac9b
Don't use depth infinity anymore to get the folders e2ee status

This way we avoid the expensive SQL query on the server at the price of
more round-trips since we're doing the recursive traversal by hand now.

Also it turns out this depth was used for all the other propfind calls
during sync when we want fresher information regarding a folder. This
was very inefficient in all cases and won't happen anymore.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/clientsideencryption.cpp
src/libsync/clientsideencryptionjobs.cpp