Browse Source

Fix: wrong param used for temp database path

* DataStoreDirectory was used instead of DataStoreTempDirectory
Rod Hynes 11 years ago
parent
commit
dbec6642cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      psiphon/dataStore.go

+ 1 - 1
psiphon/dataStore.go

@@ -71,7 +71,7 @@ func InitDataStore(config *Config) (err error) {
 			// temporary directory: https://www.sqlite.org/pragma.html#pragma_temp_store_directory.
 			// TODO: is there another way to restrict writing of temporary files? E.g. temp_store=3?
 			initialization += fmt.Sprintf(
-				"pragma temp_store_directory=\"%s\";\n", config.DataStoreDirectory)
+				"pragma temp_store_directory=\"%s\";\n", config.DataStoreTempDirectory)
 		}
 		initialization += `
         create table if not exists serverEntry