]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
BackTrace: reduce the array max number to 32 40112/head
authorXiubo Li <xiubli@redhat.com>
Mon, 15 Mar 2021 06:21:04 +0000 (14:21 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 17 Mar 2021 04:58:45 +0000 (12:58 +0800)
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 <xiubli@redhat.com>
src/common/BackTrace.h

index 0132fa5da8776708e8c2576e76833d931b61b2dc..7de30a5f6e0d89b93ec0f10f48f143185c977e64 100644 (file)
@@ -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]{};