mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
add_work fix for problem in #349
This commit is contained in:
parent
1ea78887c3
commit
6c4bdc87cf
@ -586,7 +586,12 @@ void database_add_work(database_t *db, job_t *job) {
|
||||
CRASH_IF_STMT_FAIL(ret);
|
||||
}
|
||||
|
||||
CRASH_IF_NOT_SQLITE_OK(sqlite3_reset(db->insert_parse_job_stmt));
|
||||
ret = sqlite3_reset(db->insert_parse_job_stmt);
|
||||
if (ret == SQLITE_FULL) {
|
||||
pthread_mutex_unlock(&db->ipc_ctx->db_mutex);
|
||||
usleep(100000);
|
||||
pthread_mutex_lock(&db->ipc_ctx->db_mutex);
|
||||
}
|
||||
} while (ret != SQLITE_DONE);
|
||||
} else if (job->type == JOB_BULK_LINE) {
|
||||
do {
|
||||
|
Loading…
x
Reference in New Issue
Block a user