From e93c256a3cde869466d496d83e5f0f84a8d3d88d Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Mon, 15 Mar 2021 14:21:04 +0800 Subject: [PATCH] BackTrace: reduce the array max number to 32 32 should be enough for almost most case, even the call trace depth could larger than 32 but usually that could include the useful info needed. This could help save memories. Signed-off-by: Xiubo Li --- src/common/BackTrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/BackTrace.h b/src/common/BackTrace.h index 0132fa5da877..7de30a5f6e0d 100644 --- a/src/common/BackTrace.h +++ b/src/common/BackTrace.h @@ -16,7 +16,7 @@ namespace ceph { class Formatter; struct BackTrace { - const static int max = 100; + const static int max = 32; int skip; void *array[max]{}; -- 2.47.3