Home
last modified time | relevance | path

Searched refs:restore (Results 1 - 5 of 5) sorted by relevance

/base/hiviewdfx/hilog/services/hilogd/include/
H A Dlog_persister.h60 int Init(const PersistRecoveryInfo& msg, bool restore);
81 int InitFileRotator(const PersistRecoveryInfo& msg, bool restore);
86 int PrepareUncompressedFile(const std::string& parentPath, bool restore);
H A Dlog_persister_rotator.h49 int Init(const PersistRecoveryInfo& info, bool restore = false);
/base/hiviewdfx/hilog/services/hilogd/
H A Dlog_persister.cpp105 int LogPersister::InitFileRotator(const PersistRecoveryInfo& info, bool restore) in InitFileRotator() argument
124 return m_fileRotator->Init(info, restore); in InitFileRotator()
127 int LogPersister::Init(const PersistRecoveryInfo& info, bool restore) in Init() argument
156 int ret = InitFileRotator(info, restore); in Init()
161 if (int result = PrepareUncompressedFile(parentPath, restore)) { in Init()
194 int LogPersister::PrepareUncompressedFile(const std::string& parentPath, bool restore) in PrepareUncompressedFile() argument
198 FILE* plainTextFile = fopen(m_plainLogFilePath.c_str(), restore ? "r+" : "w+"); in PrepareUncompressedFile()
206 if (!restore) { in PrepareUncompressedFile()
222 if (restore) { in PrepareUncompressedFile()
H A Dlog_persister_rotator.cpp63 int LogPersisterRotator::Init(const PersistRecoveryInfo& info, bool restore) in Init() argument
72 SetFileIndex(m_info.index, restore); in Init()
H A Dservice_controller.cpp582 int StartPersistStoreJob(const PersistRecoveryInfo& info, HilogBuffer& hilogBuffer, bool restore) in StartPersistStoreJob() argument
588 int ret = persister->Init(info, restore); in StartPersistStoreJob()

Completed in 4 milliseconds