corrected caption
This commit is contained in:
@@ -295,7 +295,7 @@ static db_driver_t get_driver(private_sqlite_database_t *this)
|
|||||||
*/
|
*/
|
||||||
static int busy_handler(private_sqlite_database_t *this, int count)
|
static int busy_handler(private_sqlite_database_t *this, int count)
|
||||||
{
|
{
|
||||||
/* add an sleep, exponentially longer on every try */
|
/* add a backoff time, quadratically increasing with every try */
|
||||||
usleep(count * count * 1000);
|
usleep(count * count * 1000);
|
||||||
/* always retry */
|
/* always retry */
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user