Azat Khuzhin cb578bbe01 Fix possible "nmalloc >= ndalloc" assertion
In arena_stats_merge() first nmalloc was read, and after ndalloc.

However with this order, it is possible for some thread to incement
ndalloc in between, and then nmalloc < ndalloc, and assertion will fail,
like again found by ClickHouse CI [1] (even after #2234).

  [1]: https://github.com/ClickHouse/ClickHouse/issues/31531

Swap the order to avoid possible assertion.

Cc: @interwq
Follow-up for: #2234
2022-07-11 15:27:51 -07:00
..
2021-12-20 15:37:53 -08:00
2021-12-23 10:55:08 -08:00
2021-12-23 10:55:08 -08:00
2021-09-17 16:56:41 -07:00
2021-12-15 10:39:17 -08:00
2021-09-26 16:30:15 -07:00
2020-11-13 13:42:33 -08:00
2021-03-12 19:17:25 -08:00
2020-12-04 23:48:19 -08:00
2020-04-14 15:20:19 -07:00
2021-12-21 23:37:22 -08:00
2022-05-18 17:01:09 -07:00
2021-10-07 11:50:38 -07:00
2021-08-05 14:33:16 -07:00
2021-12-23 10:55:08 -08:00
2021-12-23 10:55:08 -08:00
2021-12-15 10:39:17 -08:00
2022-01-21 16:24:20 -08:00
2021-12-23 10:55:08 -08:00
2022-01-26 17:17:48 -08:00
2021-07-12 17:59:18 -07:00
2022-01-21 16:24:20 -08:00
2021-02-11 11:32:01 -08:00
2021-02-04 14:10:43 -08:00
2021-02-04 14:10:43 -08:00
2022-04-25 11:29:00 -07:00