if (is_memory_ && pid_list_.find(pid) == pid_list_.end()) {
db_path_list.emplace_back(parser_memory_db_path_);
- db_path_list.emplace_back(global_parser_memory_db_path_);
+ if (parser_memory_db_path_ != global_parser_memory_db_path_)
+ db_path_list.emplace_back(global_parser_memory_db_path_);
} else {
db_path_list.emplace_back(parser_file_db_path_);
- db_path_list.emplace_back(global_parser_file_db_path_);
+ if (parser_file_db_path_ != global_parser_file_db_path_)
+ db_path_list.emplace_back(global_parser_file_db_path_);
}
LOGD("local db path : %s", db_path_list[0].c_str());
- LOGD("global db path : %s", db_path_list[1].c_str());
+ if (db_path_list.size() == 2)
+ LOGD("global db path : %s", db_path_list[1].c_str());
+
return db_path_list;
}