From be56fce3371fabfb5974b1c9d5af88a2ab31b47e Mon Sep 17 00:00:00 2001 From: tangwz Date: Wed, 9 Oct 2019 10:11:01 +0800 Subject: [PATCH] Fix typo --- src/braft/log_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/braft/log_manager.cpp b/src/braft/log_manager.cpp index c5c4a193..b251557f 100644 --- a/src/braft/log_manager.cpp +++ b/src/braft/log_manager.cpp @@ -532,14 +532,14 @@ int LogManager::disk_thread(void* meta, } LogManager* log_manager = static_cast(meta); - // FXIME(chenzhangyi01): it's buggy + // FIXME(chenzhangyi01): it's buggy LogId last_id = log_manager->_disk_id; StableClosure* storage[256]; AppendBatcher ab(storage, ARRAY_SIZE(storage), &last_id, log_manager); for (; iter; ++iter) { // ^^^ Must iterate to the end to release to corresponding - // even if some error has ocurred + // even if some error has occurred StableClosure* done = *iter; if (!done->_entries.empty()) { ab.append(done); @@ -639,7 +639,7 @@ void LogManager::set_snapshot(const SnapshotMeta* meta) { return; } else if (term == meta->last_included_term()) { // Truncating log to the index of the last snapshot. - // We don't truncate log before the lastest snapshot immediately since + // We don't truncate log before the latest snapshot immediately since // some log around last_snapshot_index is probably needed by some // followers if (last_but_one_snapshot_id.index > 0) {