Fix possible issues for pkgmgr-info 52/202052/2
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 7 Dec 2018 10:27:15 +0000 (19:27 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 10 May 2019 05:35:31 +0000 (14:35 +0900)
commit18751cc5aed77713d7279c1c2a32fbf97c68995c
tree015f6c23099c00a5b0ce9925375bbd9810e456d1
parentb7d573db9b2dd690df70257c2ac819b0e08ce3db
Fix possible issues for pkgmgr-info

- Change order of releasing resources according to SQLite recommendation.
- Change methods of lock from exclusive to deferred.
  This will allow processes to access db while modifying db
  except actual transaction.

Change-Id: I441d6c14b6b503f6f2b8599240efdfed36b6a617
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
(cherry picked from commit 87b8daea23c8d671f4284933cd71dfa9d349ea0a)
(cherry picked from commit 1ffc918a3b686f4f7c4fc55e816f0699a317728e)
parser/src/pkgmgr_parser_db.c
src/pkgmgrinfo_appinfo.c
src/pkgmgrinfo_certinfo.c
src/pkgmgrinfo_db.c
src/pkgmgrinfo_pkginfo.c