- SQLite connection will be disconnected before cleanup operation.
- Adjust busy timer to 5 sec to prevent db lock issue.
Change-Id: If139d988819e28bd1b1ed733541491ea09ff5be8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
ret = PMINFO_R_OK;
catch:
+ sqlite3_finalize(stmt);
+ sqlite3_close_v2(db);
+
if (constraint)
free(constraint);
pkgmgrinfo_basic_free_application(info);
g_list_free_full(bind_params, free);
- sqlite3_finalize(stmt);
- sqlite3_close_v2(db);
return ret;
}
ret = PMINFO_R_OK;
catch:
+ sqlite3_finalize(stmt);
+ sqlite3_close_v2(db);
+
if (constraints)
free(constraints);
pkgmgrinfo_pkginfo_filter_destroy(tmp_filter);
g_list_free_full(bind_params, free);
- sqlite3_finalize(stmt);
- sqlite3_close_v2(db);
return ret;
}
}
#define BUSY_WAITING_USEC (1000000 / 10 / 2) /* 0.05 sec */
-#define BUSY_WAITING_MAX 40 /* wait for max 2 sec */
+#define BUSY_WAITING_MAX 100 /* wait for max 5 sec */
static int __db_busy_handler(void *data, int count)
{
if (count < BUSY_WAITING_MAX) {