Reduce calling AppStatusDao::UpdateAppStatus method
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 5 Jan 2023 02:53:55 +0000 (02:53 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 5 Jan 2023 03:10:50 +0000 (03:10 +0000)
To reduce calling AppStatusDao::UpdateAppStatus() method, AMD doesn't
call it while updating the app status.
When calling the sqlite3_step() and the sqlite3_exec(), calling the fdatasync()
is occurred. This patch is to reduce it for system performance.

Change-Id: I67cfc1c3effd14364e5a7a9086f3fe31f85a76d8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/app_status/app_status_manager.cc

index 533fb9dba19ed306e321569047566bf359e556e1..ed4d6bec9cab37b3b050088a167e183ecae12fe2 100644 (file)
@@ -839,7 +839,6 @@ int AppStatusManager::Update(const AppStatusPtr& app, int status,
      app->GetStatus());
   _noti_send(AMD_NOTI_MSG_APP_STATUS_UPDATE_STATUS_END, force,
       update_group_info, app.get(), nullptr);
-  app_status_dao_->UpdateAppStatus(app);
   return 0;
 }