wip
This commit is contained in:
parent
1b973d2789
commit
a751df9d5c
|
@ -3021,10 +3021,9 @@ incr_msg(Msg0, DelFailed, Anns) ->
|
|||
end.
|
||||
|
||||
exec_read(Flru0, ReadPlan, Msgs) ->
|
||||
{Entries, Flru} = ra:execute_read_plan(ReadPlan, Flru0),
|
||||
%% pretend entries is a map
|
||||
{Entries, Flru} = ra_log_read_plan:execute(ReadPlan, Flru0),
|
||||
%% return a list in original order
|
||||
{lists:map(fun ({MsgId, ?MSG(Idx, Header)}) ->
|
||||
{_, _, Cmd, _} = maps:get(Idx, Entries),
|
||||
%% hacky
|
||||
Cmd = maps:get(Idx, Entries),
|
||||
{MsgId, {Header, get_msg(Cmd)}}
|
||||
end, Msgs), Flru}.
|
||||
|
|
Loading…
Reference in New Issue