Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 4589:bec74e29f86b db-changes
attaching the listener to transactions in IDatabaseWrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Mar 2021 15:33:47 +0100 |
parents | 888868a5dc4e |
children | ff8170d17d90 |
comparison
equal
deleted
inserted
replaced
4588:94147ce2f097 | 4589:bec74e29f86b |
---|---|
531 if (context_.get() == NULL) | 531 if (context_.get() == NULL) |
532 { | 532 { |
533 throw OrthancException(ErrorCode_NullPointer); | 533 throw OrthancException(ErrorCode_NullPointer); |
534 } | 534 } |
535 | 535 |
536 transaction_.reset(db_.StartTransaction(type)); | 536 transaction_.reset(db_.StartTransaction(type, *context_)); |
537 if (transaction_.get() == NULL) | 537 if (transaction_.get() == NULL) |
538 { | 538 { |
539 throw OrthancException(ErrorCode_NullPointer); | 539 throw OrthancException(ErrorCode_NullPointer); |
540 } | 540 } |
541 } | 541 } |