Change-Id: I7c0c5e4ecb2873dc29cc03c71c5fb08a11499b6e
#define MAX_DB_RETRY_COUNT 5
#define MAX_USLEEP_TIMEOUT 500000
#define MAX_DB_RETRY_COUNT 5
#define MAX_USLEEP_TIMEOUT 500000
-#define SQLITE_BUSY_TIMEOUT 500000
#define MAX_IFACE_LENGTH 32
/**
#define MAX_IFACE_LENGTH 32
/**
#include "db/table-firewall.h"
#include "db-internal.h"
#include "db/table-firewall.h"
#include "db-internal.h"
-#define SQLITE_BUSY_TIMEOUT 500000
+#define STC_DB_BUSY_TIMEOUT 500000
static sqlite3 *database;
static sqlite3 *database;
STC_LOGE("DB locked by another process, attempts number %d",
attempts);
STC_LOGE("DB locked by another process, attempts number %d",
attempts);
- usleep(SQLITE_BUSY_TIMEOUT); /* wait for a half second*/
+ usleep(STC_DB_BUSY_TIMEOUT); /* wait for a half second*/
__STC_LOG_FUNC_EXIT__;
return 1;
}
__STC_LOG_FUNC_EXIT__;
return 1;
}