Merge remote-tracking branch 'origin/topic/johanna/bit-1325'

BIT-1325 #merged

* origin/topic/johanna/bit-1325:
  Enable SQLite shared cache mode.
This commit is contained in:
Robin Sommer 2016-07-26 14:39:01 -07:00
commit cc67acdcfe
4 changed files with 114 additions and 0 deletions

View file

@ -75,6 +75,10 @@ bool SQLite::DoInit(const ReaderInfo& info, int arg_num_fields, const threading:
return false;
}
// Allow connections to same DB to use single data/schema cache. Also
// allows simultaneous writes to one file.
sqlite3_enable_shared_cache(1);
if ( Info().mode != MODE_MANUAL )
{
Error("SQLite only supports manual reading mode.");