Skip to content

Commit 356866b

Browse files
Do not clear cache path on error (#1209)
Currently failed cache open leads to removing cache path what interfere with the idea of cache repair process (either removal or proper fixing) since we're using the same cache setting during whole cache lifetime Relates-To: OAM-1088 Signed-off-by: Andrey Kashcheev <[email protected]>
1 parent 6e8fa33 commit 356866b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

olp-cpp-sdk-core/src/cache/DefaultCacheImpl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,6 @@ DefaultCache::StorageOpenResult DefaultCacheImpl::SetupProtectedCache() {
838838
settings_.disk_path_protected.get().c_str());
839839

840840
protected_cache_.reset();
841-
settings_.disk_path_protected = boost::none;
842841
return ToStorageOpenResult(status);
843842
}
844843

@@ -859,7 +858,6 @@ DefaultCache::StorageOpenResult DefaultCacheImpl::SetupMutableCache() {
859858
settings_.disk_path_mutable.get().c_str());
860859

861860
mutable_cache_.reset();
862-
settings_.disk_path_mutable = boost::none;
863861
return StorageOpenResult::OpenDiskPathFailure;
864862
}
865863

0 commit comments

Comments
 (0)