diff OrthancServer/ServerIndex.cpp @ 413:47d63c941902

clearing /exports and /changes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 03 May 2013 15:23:09 +0200
parents 4d5f0857ec9c
children 16b52fb8d034
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Fri May 03 13:11:16 2013 +0200
+++ b/OrthancServer/ServerIndex.cpp	Fri May 03 15:23:09 2013 +0200
@@ -1115,4 +1115,17 @@
 
     transaction->Commit();
   }
+
+
+  void ServerIndex::DeleteChanges()
+  {
+    boost::mutex::scoped_lock lock(mutex_);
+    db_->ClearTable("Changes");
+  }
+
+  void ServerIndex::DeleteExportedResources()
+  {
+    boost::mutex::scoped_lock lock(mutex_);
+    db_->ClearTable("ExportedResources");
+  }
 }