Skip to content

Commit

Permalink
Fix logging_vnode respect sync_log setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Schimpf committed Aug 15, 2019
1 parent b502dee commit e53bec0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions include/antidote.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
-define(META_TABLE_NAME, a_meta_data_table).
-define(REMOTE_META_TABLE_NAME, a_remote_meta_data_table).
-define(META_TABLE_STABLE_NAME, a_meta_data_table_stable).
%% At commit, if this is set to true, the logging vnode
%% will ensure that the transaction record is written to disk
-define(SYNC_LOG, false).
%% Uncomment the following line to use erlang:now()
%% Otherwise os:timestamp() is used which can go backwards
%% which is unsafe for clock-si
Expand Down Expand Up @@ -269,4 +266,4 @@
%% true if this is the most recent snapshot in the cache
is_newest_snapshot :: boolean()
}).
-type snapshot_get_response() :: #snapshot_get_response{}.
-type snapshot_get_response() :: #snapshot_get_response{}.
2 changes: 1 addition & 1 deletion src/logging_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ read(Node, Log) ->
-spec asyn_append(index_node(), key(), log_operation(), sender()) -> ok.
asyn_append(IndexNode, Log, LogOperation, ReplyTo) ->
riak_core_vnode_master:command(IndexNode,
{append, Log, LogOperation, ?SYNC_LOG},
{append, Log, LogOperation, is_sync_log()},
ReplyTo,
?LOGGING_MASTER).

Expand Down

0 comments on commit e53bec0

Please sign in to comment.