Browse Source

WIP: Store rollback memory in journal

Stefan Schmidt 6 năm trước cách đây
mục cha
commit
4a667e54bb
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      code_boost/src/cxx/statistics_db.cpp

+ 2 - 0
code_boost/src/cxx/statistics_db.cpp

@@ -20,6 +20,8 @@ statistics_db::statistics_db(std::string database_path) {
     db.reset(new SQLite::Database(database_path, SQLite::OPEN_CREATE | SQLite::OPEN_READWRITE));
 
     db->exec("PRAGMA synchronous = OFF");
+    db->exec("PRAGMA journal_mode = MEMORY");
+    
 
     // Read ports and services into portServices vector
     readPortServicesFromNmap();