Skip to content

Commit 807bd6b

Browse files
MB-52259: Merge branch 'cheshire-cat' into neo
- MB-52259: Correctly merge interesting stats Change-Id: I0250d3ce118d9e3353f674ddd2039e7385948a62
2 parents 7afe9c0 + f527d83 commit 807bd6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ns_heart.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ current_status_slow_inner() ->
250250

251251
InterestingStats =
252252
lists:foldl(fun ({BucketName, InterestingValues}, Acc) ->
253+
ValuesDict = orddict:from_list(InterestingValues),
253254
orddict:merge(fun (K, V1, V2) ->
254255
try
255256
V1 + V2
@@ -258,8 +259,8 @@ current_status_slow_inner() ->
258259
[{BucketName, K, V1, V2}]),
259260
V1
260261
end
261-
end, Acc, InterestingValues)
262-
end, [], PerBucketInterestingStats),
262+
end, Acc, ValuesDict)
263+
end, orddict:new(), PerBucketInterestingStats),
263264

264265
Tasks = lists:filter(
265266
fun (Task) ->

0 commit comments

Comments
 (0)