Fix typos

This commit is contained in:
alesapin 2021-02-20 14:28:39 +03:00
parent 89dd15a91d
commit e7f792c94d
2 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ void Changelog::readChangelogAndInitWriter(size_t from_log_index)
/// All subsequent logs shouldn't exist. But they may exist if we crashed after writeAt started. Remove them. /// All subsequent logs shouldn't exist. But they may exist if we crashed after writeAt started. Remove them.
for (auto itr = existing_changelogs.upper_bound(incomplete_log_index); itr != existing_changelogs.end();) for (auto itr = existing_changelogs.upper_bound(incomplete_log_index); itr != existing_changelogs.end();)
{ {
LOG_WARNING(log, "Removing changelog {}, beacuse it's goes after broken changelog entry", itr->second.path); LOG_WARNING(log, "Removing changelog {}, because it's goes after broken changelog entry", itr->second.path);
std::filesystem::remove(itr->second.path); std::filesystem::remove(itr->second.path);
itr = existing_changelogs.erase(itr); itr = existing_changelogs.erase(itr);
} }

View File

@ -56,7 +56,7 @@ struct ChangelogFileDescription
class ChangelogWriter; class ChangelogWriter;
/// Simpliest changelog with files rotation. /// Simplest changelog with files rotation.
/// No compression, no metadata, just entries with headers one by one /// No compression, no metadata, just entries with headers one by one
/// Able to read broken files/entries and discard them. /// Able to read broken files/entries and discard them.
class Changelog class Changelog