Skip to content

Commit 00f7415

Browse files
stats: (fixes #295) Add 100 ms timeout for sqlite3 operations
1 parent 2c8f3e2 commit 00f7415

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stats/model/sqlite-output.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ SQLiteOutput::SQLiteOutput(const std::string& name)
2222
{
2323
int rc = sqlite3_open(name.c_str(), &m_db);
2424
NS_ABORT_MSG_UNLESS(rc == SQLITE_OK, "Failed to open DB");
25+
sqlite3_busy_timeout(m_db, 100); // set 100 ms timeout for sqlite3 operations
2526
}
2627

2728
SQLiteOutput::~SQLiteOutput()

0 commit comments

Comments
 (0)