Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.cpp @ 4556:2a0f8031fb93 db-changes
removed abstraction IDatabaseWrapper::ITransaction::Begin(), must be done by IDatabaseWrapper::StartTransaction()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 Mar 2021 17:31:30 +0100 |
parents | 456ed3fcff81 |
children | b6d4b735eb4d |
comparison
equal
deleted
inserted
replaced
4555:456ed3fcff81 | 4556:2a0f8031fb93 |
---|---|
249 explicit Transaction(ServerIndex& index) : | 249 explicit Transaction(ServerIndex& index) : |
250 index_(index), | 250 index_(index), |
251 isCommitted_(false) | 251 isCommitted_(false) |
252 { | 252 { |
253 transaction_.reset(index_.db_.StartTransaction()); | 253 transaction_.reset(index_.db_.StartTransaction()); |
254 transaction_->Begin(); | |
255 | |
256 index_.listener_->StartTransaction(); | 254 index_.listener_->StartTransaction(); |
257 } | 255 } |
258 | 256 |
259 ~Transaction() | 257 ~Transaction() |
260 { | 258 { |