Skip to content

Commit

Permalink
Fix typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Schimpf committed Aug 16, 2019
1 parent 8430b3c commit dcf79b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/logging_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ read(Node, Log) ->
{read, Log},
?LOGGING_MASTER).

%% @doc Sends an `append' asyncrhonous command to the Logs in `Preflist'
%% @doc Sends an `append' asynchronous command to the Logs in `Preflist'
-spec asyn_append(index_node(), key(), log_operation(), sender()) -> ok.
asyn_append(IndexNode, Log, LogOperation, ReplyTo) ->
riak_core_vnode_master:command(IndexNode,
Expand Down Expand Up @@ -192,7 +192,7 @@ get_up_to_time(IndexNode, LogId, MaxSnapshotTime, Type, Key) ->
?LOGGING_MASTER,
infinity).

%% @doc given the MinSnapshotTime and the type, this method fetchss from the log the
%% @doc given the MinSnapshotTime and the type, this method fetches from the log the
%% desired operations so a new snapshot can be created.
%% It returns a snapshot_get_response() record which is defined in antidote.hrl
-spec get_from_time(index_node(), key(), vectorclock(), type(), key()) ->
Expand All @@ -216,13 +216,13 @@ get_range(IndexNode, LogId, MinSnapshotTime, MaxSnapshotTime, Type, Key) ->


%% @doc Given the logid and position in the log (given by continuation) and a dict
%% of non_commited operations up to this position returns
%% of non_committed operations up to this position returns
%% a tuple with three elements
%% the first is a dict with all operations that had been committed until the next chunk in the log
%% the second contains those without commit operations
%% the third is the location of the next chunk
%% Otherwise if the end of the file is reached it returns a tuple
%% where the first elelment is 'eof' and the second is a dict of commited operations
%% where the first element is 'eof' and the second is a dict of committed operations
-spec get_all(index_node(), log_id(), start | disk_log:continuation(), dict:dict(key(), [{non_neg_integer(), clocksi_payload()}])) ->
{disk_log:continuation(), dict:dict(txid(), [any_log_payload()]), dict:dict(key(), [{non_neg_integer(), clocksi_payload()}])}
| {error, reason()} | {eof, dict:dict(key(), [{non_neg_integer(), clocksi_payload()}])}.
Expand All @@ -245,7 +245,7 @@ request_bucket_op_id(IndexNode, DCID, Bucket, Partition) ->
?LOGGING_MASTER,
infinity).

%% @doc Returns true if syncrounous logging is enabled
%% @doc Returns true if synchronous logging is enabled
%% False otherwise.
%% Uses environment variable "sync_log" set in antidote.app.src
-spec is_sync_log() -> boolean().
Expand Down Expand Up @@ -550,7 +550,7 @@ handle_command({get, LogId, MinSnapshotTime, MaxSnapshotTime, Type, Key}, _Sende

%% This will reply with all downstream operations that have
%% been stored in the log given by LogId
%% The resut is a dict, with a list of ops per key
%% The result is a dict, with a list of ops per key
%% The following spec is only for reference
%% -spec handle_command({get_all, log_id(), disk_log:continuation() | start, dict:dict()}, term(), #state{}) ->
%% {reply, {error, reason()} | dict:dict(), #state{}}.
Expand Down

0 comments on commit dcf79b3

Please sign in to comment.