Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1270:cf5bd2dc3b7a
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Jan 2015 16:46:36 +0100 |
parents | 40725595aaf0 |
children | 83d8b3eacf49 |
comparison
equal
deleted
inserted
replaced
1269:d3e1548ca08e | 1270:cf5bd2dc3b7a |
---|---|
219 public: | 219 public: |
220 Transaction(ServerIndex& index) : | 220 Transaction(ServerIndex& index) : |
221 index_(index), | 221 index_(index), |
222 isCommitted_(false) | 222 isCommitted_(false) |
223 { | 223 { |
224 assert(index_.currentStorageSize_ == index_.db_.GetTotalCompressedSize()); | |
225 | |
226 transaction_.reset(index_.db_.StartTransaction()); | 224 transaction_.reset(index_.db_.StartTransaction()); |
227 transaction_->Begin(); | 225 transaction_->Begin(); |
226 | |
227 assert(index_.currentStorageSize_ == index_.db_.GetTotalCompressedSize()); | |
228 | 228 |
229 index_.listener_->StartTransaction(); | 229 index_.listener_->StartTransaction(); |
230 } | 230 } |
231 | 231 |
232 ~Transaction() | 232 ~Transaction() |