comparison OrthancServer/ServerIndex.cpp @ 2826:c277e0421200

unit testing of overwriting
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Sep 2018 16:06:41 +0200
parents 8aa6aef11b70
children e5e3253a1164
comparison
equal deleted inserted replaced
2825:8aa6aef11b70 2826:c277e0421200
542 IDatabaseWrapper& db, 542 IDatabaseWrapper& db,
543 unsigned int threadSleep) : 543 unsigned int threadSleep) :
544 done_(false), 544 done_(false),
545 db_(db), 545 db_(db),
546 maximumStorageSize_(0), 546 maximumStorageSize_(0),
547 maximumPatients_(0) 547 maximumPatients_(0),
548 overwrite_(false)
548 { 549 {
549 listener_.reset(new Listener(context)); 550 listener_.reset(new Listener(context));
550 db_.SetListener(*listener_); 551 db_.SetListener(*listener_);
551 552
552 currentStorageSize_ = db_.GetTotalCompressedSize(); 553 currentStorageSize_ = db_.GetTotalCompressedSize();