diff OrthancServer/main.cpp @ 376:2cef9c2d4148

separate path for SQLite index, manual loading of external dictionaries
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Apr 2013 11:13:51 +0200
parents b9bc31c6b639
children ff647eedfbe1 466c992a9a42
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Tue Apr 16 17:33:44 2013 +0200
+++ b/OrthancServer/main.cpp	Wed Apr 17 11:13:51 2013 +0200
@@ -210,7 +210,12 @@
     }
 
     boost::filesystem::path storageDirectory = GetGlobalStringParameter("StorageDirectory", "OrthancStorage");
-    ServerContext context(storageDirectory);
+    boost::filesystem::path indexDirectory = GetGlobalStringParameter("IndexDirectory", storageDirectory.string());
+    ServerContext context(storageDirectory, indexDirectory);
+
+    LOG(WARNING) << "Storage directory: " << storageDirectory;
+    LOG(WARNING) << "Index directory: " << indexDirectory;
+
     context.SetCompressionEnabled(GetGlobalBoolParameter("StorageCompression", false));
 
     try