Vfs: Don't let new local files start out unpinned #7250
authorChristian Kamm <mail@ckamm.de>
Fri, 21 Jun 2019 07:06:07 +0000 (09:06 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:52 +0000 (10:58 +0100)
commit34dc5e4e88bb2fef848d6708459336eeab101b80
tree492cc43859358d5b822e2e67b696941af1741c5c
parent62d876b09a925a919d56a37c76fe6b5e1233e539
Vfs: Don't let new local files start out unpinned #7250

If one adds a new file to an online-only folder the previous behavior
was to upload the file in one sync and dehydrate it in the next. Now
these new files get set to Unspecified pin state, making them retain
their data.
src/libsync/propagateupload.cpp
test/testsyncvirtualfiles.cpp