ilho kim [Fri, 3 Mar 2023 01:15:12 +0000 (10:15 +0900)]
Add debugging log for disabled pkg/app for cache
Change-Id: I360d3bd833b7f05db225ae437bdab35adc5555af
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
(cherry picked from commit
669898d06afe072322181aa82643bb3717b900d2)
ilho kim [Mon, 6 Mar 2023 04:44:57 +0000 (13:44 +0900)]
Fix 'PMINFO_APPINFO_PROP_PKG_DISABLE' filter for cache
PMINFO_APPINFO_PROP_PKG_DISABLE filter should check
if the application's package is disabled or not
Change-Id: Ifce33771267de6ade81d9e118cded3519757aef0
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
(cherry picked from commit
a28c918ecacabe36e1ad327c9ab04f902f568689)
ilho kim [Mon, 6 Mar 2023 04:34:47 +0000 (13:34 +0900)]
Add package paremeter to application filter
Package information of the application may be required
in the application filter
Change-Id: I1386eb75cd30f939eef253621b13300904398b1a
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
(cherry picked from commit
d525fbfa4ccda48662a81c5913000f3dcc42a05c)
Hwankyu Jhun [Wed, 8 Mar 2023 23:30:15 +0000 (23:30 +0000)]
Modify package ID comparison
This patch fixes duplicated callback function call.
Change-Id: I438d3e1243652542a002701f623da2aeba27b0a1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ilho kim [Mon, 13 Feb 2023 02:25:54 +0000 (11:25 +0900)]
Fix static analysis issues
- Unchecked return value
Change-Id: Ic59b1ee15622fd86f1bf4782e3df0191aa7fe0aa
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
ilho kim [Fri, 10 Feb 2023 01:28:01 +0000 (10:28 +0900)]
Release version 0.23.3
Changes:
- Delay Creation of cache if backup database is exist
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
Change-Id: Ifecbc066f8a0f0cd4c8b9be9cb695f259fe219c8
ilho kim [Wed, 8 Feb 2023 06:37:28 +0000 (15:37 +0900)]
Delay Creation of cache if backup database is exist
If the backup database created during pkg_upgrade remains due to power off
the backup database will be restored in the next pkg_upgrade
In this case, the package information of the database and cache may be
different
Change-Id: I3b17a659cdaeccd3fc2c01224336f771b4bd7f5f
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
(cherry picked from commit
4bf9cff685617becd750141dd39c684fedf3c440)
jh9216.park [Mon, 16 Jan 2023 23:51:51 +0000 (18:51 -0500)]
Release version 0.23.2
Changes:
- Fix build error
Change-Id: I2bb76f95c5d9367050bc109013a0a901bfc4444f
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
jh9216.park [Mon, 16 Jan 2023 23:43:13 +0000 (18:43 -0500)]
Fix build error
- When 'gcov' is defined, build errors will happen.
Change-Id: I4ff56334d75630185f9720aa0b53d32612fc92c0
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Sangyoon Jang [Fri, 13 Jan 2023 07:54:23 +0000 (16:54 +0900)]
Release version 0.23.1
Changes:
- Add missing table names
Change-Id: I636eaf704de27b962fd4b62f97e846e8466665cc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 13 Jan 2023 07:50:52 +0000 (16:50 +0900)]
Add missing table names
Add missing table names for pkg-db-recovery.
Change-Id: Ib27c394da6d4c1e1874a41655e69cbc4997e267a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 13 Jan 2023 03:46:04 +0000 (12:46 +0900)]
Release version 0.23.0
Changes:
- Add metadata to pkginfo
- Update pkg_db_version
Change-Id: If41c00ce586fa29d8c33cee8eeaad847b4e4e40d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 13 Jan 2023 02:11:10 +0000 (11:11 +0900)]
Update pkg_db_version
package_metadata table was added.
Change-Id: Ie0877a43e735fdbbf010269b9a00becedeb3c730
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 11 Jan 2023 01:14:42 +0000 (10:14 +0900)]
Add metadata to pkginfo
Now metadata is available at package level.
Change-Id: Ic3f561fdb427d2482b1c3945366e6c26d7fe3976
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
jh9216.park [Thu, 12 Jan 2023 08:00:20 +0000 (03:00 -0500)]
Release version 0.22.41
Changes:
- Refactor pkgmgr-info
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: I04ca8c3d15c42f5349c13664427fa7138d3f1141
jh9216.park [Fri, 30 Dec 2022 02:29:38 +0000 (21:29 -0500)]
Refactor pkgmgr-info
- Use tizen_base::Database
- C -> C++
Change-Id: I77ffd89f16f4386cc85ff1031034f42c1a22498d
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
ilho kim [Tue, 10 Jan 2023 04:27:55 +0000 (13:27 +0900)]
Release version 0.22.40
Changes:
- Fix ResTypePkgFilterChecker
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
Change-Id: Ia0419f5efdbc6701a84673640e7580c2ca8eddb3
ilho kim [Tue, 10 Jan 2023 01:57:47 +0000 (10:57 +0900)]
Fix ResTypePkgFilterChecker
ResTypePkgFilterChecker filters the cached package information
to the resource type
Fix the the filter's behavior
Change-Id: Ia244ff932365be41b2fdb47c477644292058c85f
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
Sangyoon Jang [Thu, 24 Nov 2022 01:04:34 +0000 (10:04 +0900)]
Release version 0.22.39
Changes:
- Fix handling pending pkgs
Change-Id: I18e1d4be08e1ad13821617b205381a80c8b11877
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 24 Nov 2022 00:03:31 +0000 (09:03 +0900)]
Fix handling pending pkgs
Hanling pending pkgs doesn't need to affected by pid.
Change-Id: Iac865f75614426f71c8c425650077ed9e02ccbfd
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 21 Oct 2022 08:10:29 +0000 (17:10 +0900)]
Increase timeout of client socket
Increase timeout for read request. When system is busy, clients read
request fail by timeout.
Change-Id: I1ebdc879cd15bf812737818c66197b1c8440de67
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Changgyu Choi [Fri, 28 Oct 2022 01:05:41 +0000 (10:05 +0900)]
Release version 0.22.38
Changes:
- Fix to wrong free filter list
Change-Id: I7823f0f3f5a5b7ffd6f54d336f844f1ea8f1218c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 28 Oct 2022 00:27:52 +0000 (09:27 +0900)]
Fix to wrong free filter list
Change-Id: I622976537046751cf871902a59e58998db20f253
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 25 Oct 2022 04:51:56 +0000 (13:51 +0900)]
Release version 0.22.37
Changes:
- Fix get_filter_query
- Improve handling of cache
Change-Id: I57f7dc85d76521bc4b8ecfabcc6d3407b40f8756
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Ilho Kim [Wed, 19 Oct 2022 08:18:35 +0000 (17:18 +0900)]
Improve handling of cache
After writing the package information, entire cache is removed and created
This is an inefficient process
so change to update only cache that needs to be updated
Change-Id: I6e7eea3e23ae392765dd9cbf53cf2bc09f06f0f7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 20 Oct 2022 05:34:32 +0000 (14:34 +0900)]
Fix get_filter_query
Because the query related to the JOIN_LOCALIZED_INFO flag
is located in front of the entire query
the order of the bind parameters should be adjusted
Change-Id: Ib65b11eda6e33343d80d55c9920caf47094d2f13
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Tue, 18 Oct 2022 01:18:19 +0000 (10:18 +0900)]
Release version 0.22.36
Changes:
- Fix static analysis issue
Change-Id: Ib7c19f4e88075038b65891919bc233b23ad34d3f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 17 Oct 2022 05:39:12 +0000 (14:39 +0900)]
Fix static analysis issue
Change-Id: I0a02f5b8445833a8563b6bfef7e7417a30785c07
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Tue, 11 Oct 2022 07:08:33 +0000 (16:08 +0900)]
Release version 0.22.35
Changes:
- Set the timeout to 60 for write query request
- Add log in case of failure of recv due to interrupt
- Fix to return errno
Change-Id: I51c56c06c89f341bd0281341965d6898bf9b38ec
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 11 Oct 2022 06:49:00 +0000 (15:49 +0900)]
Fix to return errno
There is a possibility that errno may be changed during write log
Modified to save the errno value
Change-Id: I210bc4678e83ee00bb1c1b788f5c99c23f745b6a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 11 Oct 2022 06:46:30 +0000 (15:46 +0900)]
Add log in case of failure of recv due to interrupt
Change-Id: Ib3e54dd7993afb33f75bea504de319ce70e8d9a4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 11 Oct 2022 06:08:11 +0000 (15:08 +0900)]
Set the timeout to 60 for write query request
Change-Id: Idcbccef4c5147b6c6d0988d1253cf63c929f9dba
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Tue, 4 Oct 2022 06:03:06 +0000 (15:03 +0900)]
Release version 0.22.34
Changes:
- Fix logging.hh
Change-Id: I4e29a024845218c1ec0f5d9ab6ed191e7982ab44
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 19 Sep 2022 02:26:25 +0000 (11:26 +0900)]
Fix logging.hh
Using singleton object in complex applications can cause problem,
for example, it can be a problem when invoked at destructor of global
object.
Change-Id: Id61bbd147f8964a762b98ed2bc3138f9a07fa8d6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Hwankyu Jhun [Fri, 30 Sep 2022 02:23:27 +0000 (02:23 +0000)]
Release version 0.22.33
Changes:
- Fix static analysis issue
- Fix wrong type size
Change-Id: I7fb889d4063b8737e32ec39e87690da6e98e4eea
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 30 Sep 2022 01:42:18 +0000 (01:42 +0000)]
Fix wrong type size
The data size of the Parcel is size_t. In 64-bit machine, the size of
the size_t is 8 bytes. This patch changes the size type to the size_t
from the interger.
Change-Id: I6a9ccd057e3e7c26607a9703b5c189074911a660
oigned-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 28 Sep 2022 04:03:42 +0000 (04:03 +0000)]
Fix static analysis issue
The following issue is fxied:
- INEFFECTIVE_MOVE
Change-Id: I589684b5c398fc5b327bd76e111588130a7a6b49
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 27 Sep 2022 06:54:49 +0000 (06:54 +0000)]
Release version 0.22.32
Changes:
- Use modified tizen_base::Parcel
- Fix static analysis issues
Change-Id: I06ee1196ede02432a81f6699a6f105cefcb6e61d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 27 Sep 2022 03:04:17 +0000 (03:04 +0000)]
Fix static analysis issues
The following issues are fixed:
- INEFFECTIVE_MOVE
- HFA
- AUTO_CAUSES_COPY
- UNINIT_CTOR
Change-Id: I3372b6578b80f91331d0da3b3a6dc8df8aea5a6f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 23 Sep 2022 10:29:09 +0000 (10:29 +0000)]
Use modified tizen_base::Parcel
To improve the performance of the parcel creation, the implementation of
the Parcel is changed. It uses malloc() instead of std::vector.
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/base/bundle/+/281779/
Change-Id: Iebb0c2905b860fab8247971c9fe064c4f1c92a48
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Ilho Kim [Fri, 23 Sep 2022 10:04:30 +0000 (19:04 +0900)]
Release version 0.22.31
Changes:
- Remove unnecessary call of copy constructor
- Remove build warning messages
- Add log about client's tid for debug
Change-Id: I8d3d8bc562a783fc86dc57de23e39b6e5e95c3f1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 23 Sep 2022 10:02:55 +0000 (19:02 +0900)]
Add log about client's tid for debug
Change-Id: I473044bf04a1ddbd7f1fd3f24d39c414c87dd4c1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Hwankyu Jhun [Fri, 23 Sep 2022 08:31:05 +0000 (08:31 +0000)]
Remove build warning messages
- Remove unused variable
- Remove const keyword
Change-Id: I29a6177607d338970072521bec5b4a9bac9aa3bb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Ilho Kim [Thu, 22 Sep 2022 12:47:15 +0000 (21:47 +0900)]
Remove unnecessary call of copy constructor
When the WorkerThread calls the ExtractResult of RequestHandler
the copy constructor of the vector is called
This is an unnecessary operation
Change-Id: Ib2c368cc61a34bab6f9afd42887c902ecdcd78d1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 23 Sep 2022 07:51:12 +0000 (16:51 +0900)]
Release version 0.22.30
Changes:
- Add log to client side after receiving the result
- Fix missing semicolon
Change-Id: I0993344fce994a2d3e3fd39ccdbc5b8b6c49e8b4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 23 Sep 2022 07:18:24 +0000 (16:18 +0900)]
Fix missing semicolon
Change-Id: I260da4343936afefaad95c65998194af4904d5d1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 23 Sep 2022 01:59:28 +0000 (10:59 +0900)]
Add log to client side after receiving the result
Change-Id: Ie001b8ff9565b883be36276326ec7c0fb8a42bd4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 22 Sep 2022 09:08:52 +0000 (18:08 +0900)]
Release version 0.22.29
Changes:
- Remove unused code
- Remove unnecessary unique_lock from read operation
Change-Id: Iaa9161e10cd9f0c56f27a616154a6cd9a2cae444
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 20 Sep 2022 05:55:15 +0000 (14:55 +0900)]
Remove unnecessary unique_lock from read operation
In some case, unique_lock is used in code that can be operated in
multiple thread environments without changing memory state
during read operation, which cause unnecessary starvation
Change-Id: Ife3689a667929ac0506f4ced44e4a12cf16ba3dc
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 20 Sep 2022 06:02:06 +0000 (15:02 +0900)]
Remove unused code
Change-Id: I6e989171828fc4a555b98e4d696ba0d115384de1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Tue, 20 Sep 2022 08:01:46 +0000 (17:01 +0900)]
Release version 0.22.28
Changes:
- Fix static analysis issue
Change-Id: I783e2a327c679cf454454b4545b2405119a5fe9d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 20 Sep 2022 05:29:16 +0000 (14:29 +0900)]
Fix static analysis issue
Change-Id: I93c65806e99bcd1744c6c1cd6ea8b05044522af4
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Fri, 19 Aug 2022 06:06:35 +0000 (15:06 +0900)]
Release version 0.22.27
Changes:
- Fix the use of cache if not the requested uid default
- Delay server ready timing until creating cache
- Adjust OOMScore of pkgmgr-info.service
Change-Id: I4dc4c8b481de28c4169b289a785818259e35e9f0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 19 Aug 2022 05:32:05 +0000 (14:32 +0900)]
Adjust OOMScore of pkgmgr-info.service
Because pkgmgr-info.service has a default OOMScore
if there is insufficient memory in the system
the pkgmgr-info.service can be a victim with a high priority
To prevent this, apply OOMScore to -100
Change-Id: Ic48662f207a0208d358a1c3f813ab3a8c8864602
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Changgyu Choi [Fri, 19 Aug 2022 04:54:17 +0000 (13:54 +0900)]
Delay server ready timing until creating cache
Change-Id: I3ee85c5c6cff1cbb5455df25b363cc0768da6e1c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Ilho Kim [Tue, 16 Aug 2022 11:04:31 +0000 (20:04 +0900)]
Fix the use of cache if not the requested uid default
Because the cache of pkginfo, appinfo is created for the default user
the cache can't be used unless it is a default user
Change-Id: I724ebc89b18883d65b53c168024f110c83a848ab
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 26 Jul 2022 00:52:12 +0000 (09:52 +0900)]
Release version 0.22.26
Changes:
- Add lock while opening direct access library
Change-Id: I20032e23c83c78653124fa57249cf8f787e47fa0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 25 Jul 2022 11:44:58 +0000 (20:44 +0900)]
Add lock while opening direct access library
Change-Id: I5db98c4aed67d9648afdab5ae49abc3b9457da09
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 12 Jul 2022 08:42:27 +0000 (17:42 +0900)]
Release version 0.22.25
Changes:
- Set nice value -10 when making cache
Change-Id: I6fdbfe59f527a6c4c6093510e5cb0b4ddc20f8eb
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 12 Jul 2022 07:21:34 +0000 (16:21 +0900)]
Set nice value -10 when making cache
When creating cache the scheduling policy is changed to RR
which is the real time scheduling policy
as a result, the pkginfo-server can occupy the cpu for a long time
with some real time scheduling policy process
this patch modified to increase the priority by changing only the nice value
instead of changing the scheduling policy
Change-Id: If5c6509cddaa1bf3fa2cd2c47f94057aa8c35168
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 7 Jul 2022 09:13:22 +0000 (18:13 +0900)]
Release version 0.22.24
Changes:
- Fix UpdateCache related with storage check
Change-Id: Ic10b66550c973de0ecaedd468bf86c29ae273c0b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 5 Jul 2022 04:53:34 +0000 (13:53 +0900)]
Fix UpdateCache related with storage check
If there is not check_storage value in the filter
storage check logic is performed by default
when the external_path of the package installed in the external is not accessible
the package's information is not inclued in the cache
This logic must be performed when the client requests package information
Change-Id: Iaaee5231fa939c1c8a7af3ca6f6049674832e965
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 4 Jul 2022 07:57:39 +0000 (16:57 +0900)]
Release version 0.22.23
Changes:
- Fix static analysis issues
Change-Id: Ie02e405630e392e821b6d59a2df6d8c50f0eaf88
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 4 Jul 2022 04:14:07 +0000 (13:14 +0900)]
Fix static analysis issues
- Resource leak
- Pointer to local outside scope
Change-Id: I3445d458c28a448d6c873bea862712d47c669096
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 1 Jul 2022 06:44:28 +0000 (15:44 +0900)]
Release version 0.22.22
Changes:
- Apply cpu priority inheritance
Change-Id: I38194fce2937844216c111f86262c06df36b8db0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 27 Jun 2022 04:39:43 +0000 (13:39 +0900)]
Apply cpu priority inheritance
If a process with a high cpu priority attempts IPC with a non cpu boosting process
the high cpu priority of the process becomes useless
To improve the priority inversion problem
apply cpu priority inheritance to pkginfo-server
Change-Id: I05414234f147d360ce63820b53edbbabda872aad
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 27 Jun 2022 09:15:38 +0000 (18:15 +0900)]
Release version 0.22.21
Changes:
- Increase timeout value in case of db write request
Change-Id: Ifbf6021794c5e0e68707ed7603a4afca69ef8eef
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 27 Jun 2022 06:40:28 +0000 (15:40 +0900)]
Increase timeout value in case of db write request
Change-Id: I39718d869d7941db9de3af62d02481cd60bf6a6f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 17 Jun 2022 05:19:54 +0000 (14:19 +0900)]
Release version 0.22.20
Changes:
- Fix variable that prevent unittest build
Change-Id: Ibe96ab9894e6641d16d2bc3d42d06ec9974cf1cf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 17 Jun 2022 04:57:59 +0000 (13:57 +0900)]
Fix variable that prevent unittest build
Change-Id: I5308e5233ff0421a8721cdd63a63ce17ac40617d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 16 Jun 2022 02:09:25 +0000 (11:09 +0900)]
Release version 0.22.19
Changes:
- Modify to listen only G_IO_IN event
Change-Id: I4fa68b616f1423becfa621b34a13df3417c2468f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 15 Jun 2022 01:24:21 +0000 (10:24 +0900)]
Modify to listen only G_IO_IN event
Change-Id: Iab1098f361392c2224ce0ab244eea0ad151a8212
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 10 Jun 2022 05:23:35 +0000 (14:23 +0900)]
Release version 0.22.18
Changes:
- Block the build of unittest when building with asan
Change-Id: I62d378feed8dedbe0e0a7bef050d5c683ff11c9c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 9 Jun 2022 07:38:27 +0000 (16:38 +0900)]
Block the build of unittest when building with asan
Change-Id: Ic22ed90b221be8993e365ddb600a3dd7ead947e0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 7 Jun 2022 09:47:49 +0000 (18:47 +0900)]
Release version 0.22.17
Changes:
- Add calling usleep() to avoid busy wating
- Receive client's request at each thread
Change-Id: Ica04587fa5bfe22424fdf75bc12b1a118abe8074
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 2 Jun 2022 07:21:44 +0000 (16:21 +0900)]
Receive client's request at each thread
Currently, pkginfo-server read each request in the main thread
but if some client sends the request slowly,
there is a possibility that the main thread is blocked
Change-Id: I7cdd27a5c81d2badd6885c2251390eb4ab5d8fcd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 31 May 2022 08:29:21 +0000 (17:29 +0900)]
Add calling usleep() to avoid busy wating
If the socket is non-blocking mode, while loop can make busy wating
To avoid busy wating, this patch adds calling usleep() with 100 ms
Change-Id: Id4c17e2f8e403ebfe17ae903fa1f4ccb86822c58
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 31 May 2022 06:39:20 +0000 (15:39 +0900)]
Release version 0.22.16
Changes:
- Add capabilities to pkg db recovery service
Change-Id: I690e7d85009aca36098ad7cdafeb0079b24d5bef
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 30 May 2022 06:55:19 +0000 (15:55 +0900)]
Add capabilities to pkg db recovery service
This service can execute backend(tpk-backend,wgt-backend,unified-backend)
so same capabilities is needed
Change-Id: I8441449049658df805d39203c3d0d823e6704b7f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 27 May 2022 07:12:17 +0000 (16:12 +0900)]
Release version 0.22.15
Changes:
- Fix spec file for coverage measurement
Change-Id: I73322426d54d781121c1fd783989dea6eb94d68c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 27 May 2022 00:53:32 +0000 (09:53 +0900)]
Fix spec file for coverage measurement
To measure code coverages automatically, a run-unittest.sh is needed
Change-Id: I80baad904065d8639910e62a035ff04a0f3a5660
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Changgyu Choi [Wed, 25 May 2022 01:46:52 +0000 (10:46 +0900)]
Release version 0.22.14
Changes:
- Refactor WorkerThread
- Remove TODOs
- Add missing filter checker
Change-Id: I630a6faf5e1c271144adc01eb42e61c5461a7e7a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 23 May 2022 10:20:34 +0000 (19:20 +0900)]
Add missing filter checker
Change-Id: Ib51e5e25e2c3595d4f8804224f7a0ba1faa47d49
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Thu, 12 May 2022 06:22:15 +0000 (15:22 +0900)]
Remove TODOs
Get UID from sender's PkgRequest and send it into each RequestHandler
Change-Id: I751d1c99d04aa74af76ba2f61be434d8991f579d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Thu, 12 May 2022 08:17:05 +0000 (08:17 +0000)]
Merge "Refactor WorkerThread" into tizen
Changgyu Choi [Fri, 6 May 2022 08:21:51 +0000 (17:21 +0900)]
Refactor WorkerThread
Changes:
- Moves Scheduler to CreateCacheRequestHandler.
- Adds PreExec() & PostExec() to RequestHandler steps.
- Adds RequestHandlerFactory for loose coupling.
Change-Id: I0520f73164d335e6b5db97000db25c4132caad6d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Ilho Kim [Thu, 12 May 2022 04:10:12 +0000 (13:10 +0900)]
Release version 0.22.13
Changes:
- Check map data in cache has key before access
Change-Id: Ib32a7eeaeb52ab5e49d40b5fe92831538fc37e4a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 12 May 2022 03:35:01 +0000 (12:35 +0900)]
Check map data in cache has key before access
map's operator[] can modify it's data
it can cause problem in multithreaded environments
Change-Id: I2aa75be1ae70a675e6875039a25af0243a1eeb90
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 11 May 2022 04:09:25 +0000 (13:09 +0900)]
Release version 0.22.12
Changes:
- Check if database is modified when making cache
Change-Id: I3ce72ada1db9180ecc60bcf90d1bd73992677d0d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 10 May 2022 11:46:35 +0000 (20:46 +0900)]
Check if database is modified when making cache
If there is a writer tring access db directly,
there is a possibility that the database will change while creating the cache
so check the change time of the database before and after making the cache
and detect the modification of the database
if so fails the cache creation task
Change-Id: Ib606db06e424b5dfca2414592938a10f43ab4240
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Hwankyu Jhun [Fri, 29 Apr 2022 06:04:38 +0000 (15:04 +0900)]
Release version 0.22.11
Changes:
- Change scheduling policy to a round-robin policy
Change-Id: I4d99836568c02b97fb0683be1be09cbfa537eb52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 28 Apr 2022 00:37:44 +0000 (09:37 +0900)]
Change scheduling policy to a round-robin policy
Before creating the cache information(CREATE_CACHE), the worker thread of
pkginfo-server adjusts scheduling policy to the round-robin policy to improve
the performance temporaily. And, the CREATE_CACHE command is started after
the worker threads are created immediately.
Calling TrimCache() is removed from TrimMemory().
Change-Id: I1ecc2aabdbdb5f171b411704bd5cbef15c0e17b1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghyun Yeon [Fri, 22 Apr 2022 06:38:57 +0000 (15:38 +0900)]
Release version 0.22.10
Changes:
- Change db schema comparison logic
- Refactor pkgmgr-info
- Revert refactor patch and its release patch
- Add lightuser feature
Change-Id: I64bf330689af2f87f82dea1216820b22a1a47ef0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 20 Apr 2022 04:52:34 +0000 (13:52 +0900)]
Add lightuser feature
Add columns, getter, setter for lightuser feature
Change-Id: I7d0e84c9a425f886373e125be3a86d578dda5942
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 20 Apr 2022 02:34:14 +0000 (11:34 +0900)]
Revert refactor patch and its release patch
It causes some thread related exception
Change-Id: I12c1ccadf82a75882e7d7472aadab80ff79a0681
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 8 Apr 2022 08:26:24 +0000 (17:26 +0900)]
Release version 0.22.10
Changes:
- Change db schema comparison logic
- Refactor pkgmgr-info
Change-Id: I049893d2e71e63dc800a8f920a6e73ac5f4053b6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 13 Jan 2022 04:26:28 +0000 (13:26 +0900)]
Refactor pkgmgr-info
- Separace Cache logic from DBHandleProvider.
- Change function name for readability.
- Add UID setter/getter function at AbstractRequestHandler to provide uid at CacheRequestHandler.
- Apply early-return policy to reduce indentation.
Change-Id: I1f2bc50247178a70c2268c81d2f2fc5bd2e75b2c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 25 Mar 2022 08:30:04 +0000 (17:30 +0900)]
Change db schema comparison logic
DB schema couldn't be separated by newline when db has upgraded
using "alter table" sql statement.
To compare it with db schema separated by newline, parse retrieved
schema with "," and trim empty lines to separate schema with one
colum definition.
Change-Id: I14c0f58c67f668962aac9a574ff2161132e69702
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 6 Apr 2022 06:19:27 +0000 (15:19 +0900)]
Release version 0.22.9
Changes:
- Fix metadata filter when using cached app info
Change-Id: I63eb4f35ad2319c1b184b2e4ed9e4bf5d012d678
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 6 Apr 2022 04:49:57 +0000 (13:49 +0900)]
Fix metadata filter when using cached app info
when compare metadata value using metadat filter
there is need to check the exact matching of values using 'strcmp' not 'strstr'
Change-Id: I61f85c4a3e50278077730eb7190caeb0f6b484eb
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>