Fix a stack-overflow error when high concurrency happening on sqlite3 (#633)
This commit is contained in:
parent
4ca90f2415
commit
69d687dbcb
|
@ -97,7 +97,7 @@ void Sqlite3Connection::execSql(
|
|||
std::function<void(const std::exception_ptr &)> &&exceptCallback)
|
||||
{
|
||||
auto thisPtr = shared_from_this();
|
||||
loopThread_.getLoop()->runInLoop(
|
||||
loopThread_.getLoop()->queueInLoop(
|
||||
[thisPtr,
|
||||
sql = std::move(sql),
|
||||
paraNum,
|
||||
|
|
Loading…
Reference in New Issue