alg improved
@@ -25,6 +25,8 @@ using namespace rapidjson;
#define PREP_CMD_RETRY_BASE 5000 // Base time to wait for
#define PREP_CMD_RETRY_BACKOFF 5000 // Variable time to wait for
+#define MAX_RETRIES 80 // Maximum no. of retries when a lock is encountered
+
// 1 enable performance tracking
#define INSTRUMENT 0
@@ -142,7 +144,7 @@ int retries = 0, rc;
if (rc != SQLITE_OK)
{
- this_thread::sleep_for(chrono::milliseconds(retries * 1000));
+ this_thread::sleep_for(chrono::milliseconds(1000));
// FIXME_I:
Logger::getLogger()->setMinLevel("debug");
