Add db busy handler 10/114810/1
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 15 Feb 2017 04:56:01 +0000 (13:56 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 15 Feb 2017 07:19:48 +0000 (23:19 -0800)
commitda0b105963792016475485ec5b7bd7a4533528b2
treed7e95a9b67ad88e951f562dee7ae8ec0600cb3a2
parent029aa118c207c1c1163dcb04f24d14f83c65ccd6
Add db busy handler

When some process is writing on db, pkgmgr-info api fails query with
SQLITE_BUSY error. To fix this issue, the busy handler will be registered
and wait for lock released max 1 sec.

Change-Id: I04992e27f549908bd778a870114e2bd7c4d4a8de
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 52a9e4087f38c285d9e83a6647b6c13daedbdb7d)
src/pkgmgrinfo_appinfo.c
src/pkgmgrinfo_certinfo.c
src/pkgmgrinfo_pkginfo.c
src/pkgmgrinfo_private.c
src/pkgmgrinfo_private.h