Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
412:f1a0c472af79 | 413:47d63c941902 |
---|---|
1113 | 1113 |
1114 db_->LogChange(changeType, id, type); | 1114 db_->LogChange(changeType, id, type); |
1115 | 1115 |
1116 transaction->Commit(); | 1116 transaction->Commit(); |
1117 } | 1117 } |
1118 | |
1119 | |
1120 void ServerIndex::DeleteChanges() | |
1121 { | |
1122 boost::mutex::scoped_lock lock(mutex_); | |
1123 db_->ClearTable("Changes"); | |
1124 } | |
1125 | |
1126 void ServerIndex::DeleteExportedResources() | |
1127 { | |
1128 boost::mutex::scoped_lock lock(mutex_); | |
1129 db_->ClearTable("ExportedResources"); | |
1130 } | |
1118 } | 1131 } |