mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
[Crash] Fix crash issue during database dump (#4127)
This commit is contained in:
parent
103a37e762
commit
aa0ca88d9d
@ -575,7 +575,12 @@ void DatabaseDumpService::RemoveSqlBackup()
|
|||||||
{
|
{
|
||||||
std::string file = fmt::format("{}.sql", GetDumpFileNameWithPath());
|
std::string file = fmt::format("{}.sql", GetDumpFileNameWithPath());
|
||||||
if (File::Exists(file)) {
|
if (File::Exists(file)) {
|
||||||
std::filesystem::remove(file);
|
try {
|
||||||
|
std::filesystem::remove(file);
|
||||||
|
}
|
||||||
|
catch (std::exception &e) {
|
||||||
|
LogError("std::filesystem::remove err [{}]", e.what());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoveCredentialsFile();
|
RemoveCredentialsFile();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user