Fix wrong parameter 26/265226/2
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 13 Oct 2021 02:58:52 +0000 (11:58 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Wed, 13 Oct 2021 05:39:02 +0000 (05:39 +0000)
Change-Id: If8969221815f634edea4cca6779921ed78b59d9c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/server/database/db_handle_provider.cc

index d51a8e9..7f8582b 100644 (file)
@@ -174,8 +174,7 @@ std::vector<std::pair<std::string, uid_t>> DBHandleProvider::GetParserDBPath(
 std::string DBHandleProvider::GetCertDBPath(pid_t pid, bool write) {
   std::unique_lock<std::recursive_mutex> u(lock_);
   if (is_memory_ != is_memory_global_)
-    is_memory_global_ ?
-        SetMemoryMode(pid) : UnsetMemoryMode(is_memory_global_);
+    is_memory_global_ ? SetMemoryMode(pid) : UnsetMemoryMode(pid);
 
   if (IsMemoryDBActive(pid, write))
     return cert_memory_db_path;