Skip to content

Commit d0e6739

Browse files
committed
CQ: Remove 3 more unused fields from state
1 parent d067f1b commit d0e6739

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

deps/rabbit/src/rabbit_variable_queue.erl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@
145145
persistent_bytes, %% w unacked
146146

147147
ram_msg_count, %% w/o unacked
148-
ram_msg_count_prev,
149-
ram_ack_count_prev,
150148
ram_bytes, %% w unacked
151149
out_counter,
152150
in_counter,
@@ -171,13 +169,10 @@
171169
%% index/store keep track of confirms separately and
172170
%% doing intersect/subtract/union we just put the messages
173171
%% here and on sync move them to 'confirmed'.
174-
%%
175-
%% Note: This field used to be 'memory_reduction_run_count'.
176172
unconfirmed_simple,
177173
%% Queue data is grouped by VHost. We need to store it
178174
%% to work with queue index.
179-
virtual_host,
180-
waiting_bump = false
175+
virtual_host
181176
}).
182177

183178
-record(rates, { in, out, ack_in, ack_out, timestamp }).
@@ -261,8 +256,6 @@
261256
persistent_bytes :: non_neg_integer(),
262257

263258
ram_msg_count :: non_neg_integer(),
264-
ram_msg_count_prev :: non_neg_integer(),
265-
ram_ack_count_prev :: non_neg_integer(),
266259
ram_bytes :: non_neg_integer(),
267260
out_counter :: non_neg_integer(),
268261
in_counter :: non_neg_integer(),
@@ -1022,8 +1015,6 @@ init(IsDurable, IndexState, StoreState, DiskCount, DiskBytes, Terms,
10221015
persistent_bytes = DiskBytes1,
10231016

10241017
ram_msg_count = 0,
1025-
ram_msg_count_prev = 0,
1026-
ram_ack_count_prev = 0,
10271018
ram_bytes = 0,
10281019
unacked_bytes = 0,
10291020
out_counter = 0,

0 commit comments

Comments
 (0)