Skip to content

Commit

Permalink
[atlesn] Fix spelling/language in comments and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
atlesn committed Apr 7, 2024
1 parent c5059d7 commit ccffc9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/raft.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ RAFT_API int raft_transfer(struct raft *r,
raft_transfer_cb cb);

/**
* Asynchronous request perform a snapshot.
* Asynchronous request to perform a snapshot.
*/
typedef void (*raft_suggest_snapshot_cb)(struct raft_suggest_snapshot *req, int status);
struct raft_suggest_snapshot
Expand All @@ -1621,7 +1621,7 @@ struct raft_suggest_snapshot
* will be reported to the callback function.
*
* The callback is called with a status of either 0, indicating that a snapshot
* was take, or with status #RAFT_CANCELED, indicating the the operation was
* was taken, or with status #RAFT_CANCELED, indicating that the operation was
* not performed.
*
* If the function is called again before the callback has been called, the
Expand Down
2 changes: 1 addition & 1 deletion src/raft.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ int raft_step(struct raft *r,
rv = ClientTransfer(r, event->transfer.server_id);
break;
case RAFT_SUGGEST_SNAPSHOT:
infof("suggesting transfer to be performed");
infof("suggesting snapshot to be performed");
r->update->flags |= RAFT_UPDATE_SUGGEST_SNAPSHOT;
rv = 0;
break;
Expand Down

0 comments on commit ccffc9d

Please sign in to comment.