Disable call to sqlite3_enable_shared_cache under ThreadSanitizer

See https://sqlite.org/forum/forumpost/54424d80ee for details.
This commit is contained in:
Tim Wojtulewicz 2021-08-06 17:02:10 -07:00
parent f1f7ab5870
commit a2ab1b1484
2 changed files with 4 additions and 0 deletions

View file

@ -82,7 +82,9 @@ bool SQLite::DoInit(const ReaderInfo& info, int arg_num_fields, const threading:
// Allow connections to same DB to use single data/schema cache. Also
// allows simultaneous writes to one file.
#ifndef ZEEK_TSAN
sqlite3_enable_shared_cache(1);
#endif
if ( Info().mode != MODE_MANUAL )
{

View file

@ -122,7 +122,9 @@ bool SQLite::DoInit(const WriterInfo& info, int arg_num_fields,
// Allow connections to same DB to use single data/schema cache. Also
// allows simultaneous writes to one file.
#ifndef ZEEK_TSAN
sqlite3_enable_shared_cache(1);
#endif
num_fields = arg_num_fields;
fields = arg_fields;