Skip to content

Commit 8313006

Browse files
Doco
1 parent 682a136 commit 8313006

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

src/rabbit_queue_index.erl

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,28 @@
176176

177177
%%----------------------------------------------------------------------------
178178

179-
-record(qistate, {dir, segments, journal_handle, dirty_count,
180-
max_journal_entries, on_sync, on_sync_msg,
181-
unconfirmed, unconfirmed_msg,
182-
pre_publish_cache, delivered_cache}).
179+
-record(qistate, {
180+
%% queue directory where segment and journal files are stored
181+
dir,
182+
%% map of #segment records
183+
segments,
184+
%% journal file handle obtained from/used by file_handle_cache
185+
journal_handle,
186+
%% how many not yet flushed entries are there
187+
dirty_count,
188+
%% this many not yet flushed journal entries will force a flush
189+
max_journal_entries,
190+
%% callback function invoked when a message is "handled"
191+
%% by the index and potentially can be confirmed to the publisher
192+
on_sync,
193+
on_sync_msg,
194+
%% set of IDs of unconfirmed [to publishers] messages
195+
unconfirmed,
196+
unconfirmed_msg,
197+
%% optimisation
198+
pre_publish_cache,
199+
%% optimisation
200+
delivered_cache}).
183201

184202
-record(segment, {num, path, journal_entries,
185203
entries_to_segment, unacked}).

0 commit comments

Comments
 (0)