Encapsulate write operations in a transaction when creating a db file 96/160896/4
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 20 Nov 2017 04:45:30 +0000 (13:45 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 21 Nov 2017 02:03:23 +0000 (02:03 +0000)
commitaae4cf3ac7db3c552ffb12d4ac9653221f344a44
tree9a0f848a85ab0b08b3c4a0fdc15f398f033608b4
parent8e5df2f18cef91945ecad333b4403c9eab5224f6
Encapsulate write operations in a transaction when creating a db file

If isf-panel-efl crashes or terminates abnormally while
creating a ime_info db file, the db file would contain
only the partial information of installed IMEs but
it may look normal when trying to read it later.
For this reason, it is better to encapsulate all write
operations in a transaction.
And, since individual insert/delete operation could fail
also, we check the number of installed IMEs too.

Change-Id: If0c5cf1120f3ac2dd7e9f25f360eeb443622de2b
ism/extras/efl_panel/isf_panel_efl.cpp
ism/src/isf_pkg.cpp
ism/src/isf_query_utility.cpp
ism/src/isf_query_utility.h