Check if database is modified when making cache 53/274853/3
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 10 May 2022 11:46:35 +0000 (20:46 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 11 May 2022 03:30:15 +0000 (12:30 +0900)
commit2ce69708359f7658d2f31298e60645508e5e0eca
treea1e9420e62e4fd2f7ed7213dd311753f08a77283
parenta516d13f9d3ec72cbc377aea910c518cf5effdf7
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>
src/server/database/db_handle_provider.cc
src/server/database/remove_cache_db_handler.cc
src/server/runner.cc