Skip to content
Snippets Groups Projects
Commit 4046c52e authored by Mart Lubbers's avatar Mart Lubbers
Browse files

fix 144, persistTasks only affects tasks now

Previously persistTasks affected regular shares as well, this fixes #144
parent 16f9448a
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,8 @@ storeShare namespace versionSpecific prefType defaultV = sdsSequence "storeShare
//Compute the filepath in the store from the key
//And decide if the store should be memory-only or can use a persistent version
(\key {EngineOptions|appVersion,storeDirPath,persistTasks} ->
(storeDirPath </> namespace </> (if versionSpecific (appVersion </> safeName key) (safeName key)), if persistTasks prefType InMemory))
(storeDirPath </> namespace </> (if versionSpecific (appVersion </> safeName key) (safeName key))
,if (namespace == NS_TASK_INSTANCES && not persistTasks) InMemory prefType))
(\_ _ -> Right snd)
(SDSWriteConst (\_ _ -> Ok Nothing))
(SDSWriteConst (\_ w -> Ok (Just w)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment