Workaround for SQLite deadlocks when accessing the repo.
commit07f763b0e53c402eb30f5d6aae8ab61d8f19fd6d
authorAlexey Toptygin <alexeyt@fb.com>
Tue, 22 May 2018 05:38:14 +0000 (21 22:38 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 22 May 2018 05:48:43 +0000 (21 22:48 -0700)
treea434f70c41ea15500856f1799ab5c0a2fd9486bf
parentb6120a603966babbe5f681647ff1e4ee510df904
Workaround for SQLite deadlocks when accessing the repo.

Summary: If SQLite deadlocks, we never give up waiting to acquire the lock because our busyHandler always says to try again. Make our busy handler log and give up after failing to acquire a repo lock for 45 seconds.

Reviewed By: markw65

Differential Revision: D8076463

fbshipit-source-id: fb21c5d4aca1085d922944bace256fa24c9f7284
hphp/runtime/vm/repo.cpp