Modify DB transactions to return when fail
authorAbhay agarwal <ay.agarwal@samsung.com>
Thu, 31 Oct 2019 06:16:07 +0000 (11:46 +0530)
committersaerome.kim <saerome.kim@samsung.com>
Tue, 5 Nov 2019 10:39:37 +0000 (19:39 +0900)
commitd808864b3fbc35553fcd6ed5f48e268b088c8273
tree9eed20f1e34e8fccc4cff367b279f5dcce46bb8f
parent4708ba1b3116130c705441fb5ff9ab9b98864aaa
Modify DB transactions to return when fail

- Problem: If the transaction fails, more queries are being run on database
to insert/update/delete data from it without starting the transaction.
- Solution: Rollback and return from the function when transaction fails.

Change-Id: I086e56cae6a4964925fd8ee63b486469fe052314
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
ua-daemon/src/ua-manager-core.c