From 7e62ae5b7a9329ee22fac233a991306b7eb65da9 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Thu, 10 Jun 2021 14:40:11 +0900 Subject: [PATCH] Remove redundant access at global database If uid is global user pkginfo-server access global database twice Change-Id: I05490b12a5e8c07cd62abe317471e2ff0ecfd1a8 Signed-off-by: Ilho Kim --- src/pkgmgrinfo_updateinfo.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pkgmgrinfo_updateinfo.c b/src/pkgmgrinfo_updateinfo.c index a5071c4..2eba0b5 100644 --- a/src/pkgmgrinfo_updateinfo.c +++ b/src/pkgmgrinfo_updateinfo.c @@ -243,14 +243,6 @@ API int pkgmgrinfo_updateinfo_usr_foreach_updateinfo(uid_t uid, return PMINFO_R_ERROR; } - ret = _get_pkg_updateinfo(NULL, &info_list, GLOBAL_USER); - if (ret != 0) { - _LOGE("Failed to get pkg update info for user[%d]", - (int)GLOBAL_USER); - g_slist_free_full(info_list, __free_update_info); - return PMINFO_R_ERROR; - } - for (tmp_list = info_list; tmp_list; tmp_list = g_slist_next(tmp_list)) { ret = callback((pkgmgrinfo_updateinfo_h)tmp_list->data, user_data); if (ret < 0) -- 2.7.4