changeset 1270:cf5bd2dc3b7a

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Jan 2015 16:46:36 +0100
parents d3e1548ca08e
children 83d8b3eacf49
files OrthancServer/ServerIndex.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Thu Jan 08 17:50:28 2015 +0100
+++ b/OrthancServer/ServerIndex.cpp	Fri Jan 09 16:46:36 2015 +0100
@@ -221,11 +221,11 @@
       index_(index),
       isCommitted_(false)
     {
-      assert(index_.currentStorageSize_ == index_.db_.GetTotalCompressedSize());
-
       transaction_.reset(index_.db_.StartTransaction());
       transaction_->Begin();
 
+      assert(index_.currentStorageSize_ == index_.db_.GetTotalCompressedSize());
+
       index_.listener_->StartTransaction();
     }