Skip to content

Commit

Permalink
Merge pull request #168 from tangwz/fix_typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
chenzhangyi committed Oct 9, 2019
2 parents 3fe7957 + be56fce commit d0277bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/braft/log_manager.cpp
Expand Up @@ -532,14 +532,14 @@ int LogManager::disk_thread(void* meta,
}

LogManager* log_manager = static_cast<LogManager*>(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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit d0277bf

Please sign in to comment.