comparison Core/SQLite/Connection.cpp @ 206:4453a010d0db

flush to disk thread
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 12:03:18 +0100
parents 2dece1526c06
children 42e87c17cab8
comparison
equal deleted inserted replaced
205:6ab754744446 206:4453a010d0db
370 } 370 }
371 371
372 return func; 372 return func;
373 } 373 }
374 374
375
376 void Connection::FlushToDisk()
377 {
378 VLOG(1) << "SQLite::Connection::FlushToDisk";
379 int err = sqlite3_wal_checkpoint(db_, NULL);
380
381 if (err != SQLITE_OK)
382 {
383 throw OrthancException("SQLite: Unable to flush the database");
384 }
385 }
375 } 386 }
376 } 387 }