Skip to content

Commit c825578

Browse files
committed
improves comment
1 parent 20e8f91 commit c825578

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rabbit_variable_queue.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,9 @@ maybe_write_msg_to_disk(_Force, MsgStatus, State) ->
13711371
%% Due to certain optimizations made inside
13721372
%% rabbit_queue_index:pre_publish/6 we need to have two separate
13731373
%% functions for index persistence. This one is only used when paging
1374-
%% during memory pressure.
1374+
%% during memory pressure. We didn't want to modify
1375+
%% maybe_write_index_to_disk/3 because that function is used in other
1376+
%% places.
13751377
maybe_batch_write_index_to_disk(_Force,
13761378
MsgStatus = #msg_status {
13771379
index_on_disk = true }, State) ->

0 commit comments

Comments
 (0)