Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Mar 20, 2023
1 parent 1df58e5 commit cedba77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deps/rabbit/src/rabbit_classic_queue_index_v2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1295,10 +1295,9 @@ highest_continuous_seq_id([SeqId|Tail], _) ->
write_file_and_ensure_dir(Name, IOData) ->
case file:write_file(Name, IOData, [raw]) of
ok -> ok;
{error, enoent} ->
_ ->
case filelib:ensure_dir(Name) of
ok -> file:write_file(Name, IOData, [raw]);
Err -> Err
end;
Err -> Err
end
end.

0 comments on commit cedba77

Please sign in to comment.