Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1271:83d8b3eacf49
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Jan 2015 17:23:02 +0100 |
parents | cf5bd2dc3b7a |
children | b4acdb37e43b |
comparison
equal
deleted
inserted
replaced
1270:cf5bd2dc3b7a | 1271:83d8b3eacf49 |
---|---|
248 index_.currentStorageSize_ += sizeOfAddedFiles; | 248 index_.currentStorageSize_ += sizeOfAddedFiles; |
249 | 249 |
250 assert(index_.currentStorageSize_ >= index_.listener_->GetSizeOfFilesToRemove()); | 250 assert(index_.currentStorageSize_ >= index_.listener_->GetSizeOfFilesToRemove()); |
251 index_.currentStorageSize_ -= index_.listener_->GetSizeOfFilesToRemove(); | 251 index_.currentStorageSize_ -= index_.listener_->GetSizeOfFilesToRemove(); |
252 | 252 |
253 assert(index_.currentStorageSize_ == index_.db_.GetTotalCompressedSize()); | |
254 | |
255 // Send all the pending changes to the Orthanc plugins | 253 // Send all the pending changes to the Orthanc plugins |
256 index_.listener_->CommitChanges(); | 254 index_.listener_->CommitChanges(); |
257 | 255 |
258 isCommitted_ = true; | 256 isCommitted_ = true; |
259 } | 257 } |