File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2205,20 +2205,24 @@ void ProcessDirectoryJob::setupDbPinStateActions(SyncJournalFileRecord &record)
2205
2205
{
2206
2206
// Only suffix-vfs uses the db for pin states.
2207
2207
// Other plugins will set localEntry._type according to the file's pin state.
2208
- if (!isVfsWithSuffix ())
2208
+ if (!isVfsWithSuffix ()) {
2209
2209
return ;
2210
+ }
2210
2211
2211
2212
auto pin = _discoveryData->_statedb ->internalPinStates ().rawForPath (record._path );
2212
- if (!pin || *pin == PinState::Inherited)
2213
+ if (!pin || *pin == PinState::Inherited) {
2213
2214
pin = _pinState;
2215
+ }
2214
2216
2215
2217
// OnlineOnly hydrated files want to be dehydrated
2216
- if (record._type == ItemTypeFile && *pin == PinState::OnlineOnly)
2218
+ if (record._type == ItemTypeFile && *pin == PinState::OnlineOnly) {
2217
2219
record._type = ItemTypeVirtualFileDehydration;
2220
+ }
2218
2221
2219
2222
// AlwaysLocal dehydrated files want to be hydrated
2220
- if (record._type == ItemTypeVirtualFile && *pin == PinState::AlwaysLocal)
2223
+ if (record._type == ItemTypeVirtualFile && *pin == PinState::AlwaysLocal) {
2221
2224
record._type = ItemTypeVirtualFileDownload;
2225
+ }
2222
2226
}
2223
2227
2224
2228
}
You can’t perform that action at this time.
0 commit comments