Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.h @ 278:771f12042be9
more efficient determination of storage size for recycling
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 09 Dec 2012 21:51:57 +0100 |
parents | 337c506461d2 |
children | 4eea080e6e7a |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.h Sun Dec 09 15:03:17 2012 +0100 +++ b/OrthancServer/ServerIndex.h Sun Dec 09 21:51:57 2012 +0100 @@ -51,17 +51,18 @@ class ServerIndexListener; } - - class ServerIndex : public boost::noncopyable { private: + class Transaction; + boost::mutex mutex_; boost::thread flushThread_; std::auto_ptr<Internals::ServerIndexListener> listener_; std::auto_ptr<DatabaseWrapper> db_; + uint64_t currentStorageSize_; uint64_t maximumStorageSize_; unsigned int maximumPatients_;