diff OrthancServer/SQLiteDatabaseWrapper.cpp @ 3020:d207f6ac1f86 db-changes

tracking disk size by the database engine to ensure consistency across transactions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 15 Dec 2018 10:57:18 +0100
parents 8336204d95dc
children 039a9d262d64
line wrap: on
line diff
--- a/OrthancServer/SQLiteDatabaseWrapper.cpp	Fri Dec 14 18:07:40 2018 +0100
+++ b/OrthancServer/SQLiteDatabaseWrapper.cpp	Sat Dec 15 10:57:18 2018 +0100
@@ -1195,4 +1195,10 @@
       target.push_back(statement.ColumnInt64(0));
     }    
   }
+
+
+  bool SQLiteDatabaseWrapper::IsDiskSizeAbove(uint64_t threshold)
+  {
+    return GetTotalCompressedSize() > threshold;
+  }
 }