changeset 8:01b142f0a508

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 24 Sep 2021 12:52:08 +0200
parents 03157465f6f4
children 4a6b5cbadc9f 142c9e2ee8b3
files Sources/Plugin.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Sources/Plugin.cpp	Thu Sep 23 13:58:05 2021 +0200
+++ b/Sources/Plugin.cpp	Fri Sep 24 12:52:08 2021 +0200
@@ -396,6 +396,7 @@
     }
     else
     {
+      database_.RemoveAttachment(uuid);
       storageArea_->RemoveAttachment(uuid);
     }
     
@@ -499,7 +500,7 @@
           }
 
           Orthanc::SystemToolbox::MakeDirectory(folder);
-          path = (boost::filesystem::path(folder) / "indexer.db").string();
+          path = (boost::filesystem::path(folder) / "indexer-plugin.db").string();
         }
         
         LOG(WARNING) << "Path to the database of the Indexer plugin: " << path;