Make pid_list_ into non-static
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 9 Mar 2021 04:59:11 +0000 (13:59 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 9 Mar 2021 04:59:11 +0000 (13:59 +0900)
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/database/db_handle_provider.cc
src/common/database/db_handle_provider.hh

index 50cc4ca..19b4dce 100644 (file)
@@ -56,7 +56,6 @@ namespace pkgmgr_common {
 std::unordered_map<uid_t, std::unique_ptr<DBHandleProvider>>
     DBHandleProvider::provider_;
 bool DBHandleProvider::is_memory_ = false;
-std::vector<pid_t> DBHandleProvider::pid_list_;
 
 DBHandleProvider::DBHandleProvider(uid_t uid) : uid_(uid),
     global_parser_memory_db_handle_(nullptr, sqlite3_close_v2),
index 6968bef..cf74af0 100644 (file)
@@ -61,7 +61,7 @@ class EXPORT_API DBHandleProvider {
   std::string cert_memory_db_path_;
   std::string cert_file_db_path_;
   static bool is_memory_;
-  static std::vector<pid_t> pid_list_;
+  std::vector<pid_t> pid_list_;
   std::mutex lock_;
 };