Skip to content

Commit

Permalink
is -> ds
Browse files Browse the repository at this point in the history
  • Loading branch information
sduzh committed Apr 25, 2019
1 parent e539db4 commit dcc204e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/braft/snapshot_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,12 +542,12 @@ int SnapshotExecutor::register_downloading_snapshot(DownloadingSnapshot* ds) {
rc = 1;
} else if (m->request->meta().last_included_index()
> ds->request->meta().last_included_index()) {
// |is| is older
// |ds| is older
LOG(WARNING) << "Register failed: is installing a newer one.";
ds->cntl->SetFailed(EINVAL, "A newer snapshot is under installing");
return -1;
} else {
// |is| is newer
// |ds| is newer
if (_loading_snapshot) {
// We can't interrupt the loading one
LOG(WARNING) << "Register failed: is loading an older snapshot.";
Expand Down

0 comments on commit dcc204e

Please sign in to comment.