cluster: Handle non-numeric log file names.

This commit is contained in:
Gunnar Beutner 2013-09-03 10:32:42 +02:00
parent 8098329a33
commit 2b77aa06aa
1 changed files with 9 additions and 1 deletions

View File

@ -276,7 +276,15 @@ void ClusterComponent::CloseLogFile(void)
void ClusterComponent::LogGlobHandler(std::vector<int>& files, const String& file)
{
String name = Utility::BaseName(file);
int ts = Convert::ToLong(name);
int ts;
try {
ts = Convert::ToLong(name);
} catch (const std::exception&) {
return;
}
files.push_back(ts);
}