Skip to content

Commit

Permalink
Merge pull request #1588 from Expensify/tyler-attempt-to-recover-from…
Browse files Browse the repository at this point in the history
…-replicate-thread-failure

Attempt to recover after error starting replciate thread
  • Loading branch information
tylerkaraszewski authored Oct 5, 2023
2 parents ac0a516 + cf9e098 commit ae45589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlitecluster/SQLiteNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ void SQLiteNode::_onMESSAGE(SQLitePeer* peer, const SData& message) {
thread(&SQLiteNode::_replicate, this, peer, message, _dbPool->getIndex(false), threadAttemptStartTimestamp).detach();
} catch (const system_error& e) {
SWARN("Caught system_error starting _replicate thread with " << _replicationThreadCount.load() << " threads. e.what()=" << e.what());
throw;
STHROW("Error starting replicate thread so giving up and reconnecting.");
}
SDEBUG("Done spawning concurrent replicate thread: " << threadID);
}
Expand Down

0 comments on commit ae45589

Please sign in to comment.