v23-0012-Don-t-include-the-size-of-RT_RADIX_TREE-to-memor.patch

application/octet-stream

Filename: v23-0012-Don-t-include-the-size-of-RT_RADIX_TREE-to-memor.patch
Type: application/octet-stream
Part: 9
Message: Re: [PoC] Improve dead tuple storage for lazy vacuum

Patch

Format: format-patch
Series: patch v23-0012
Subject: Don't include the size of RT_RADIX_TREE to memory usage as discussed.
File+
src/include/lib/radixtree.h 1 2
From b90e3412b94bfc5bf8de7e2f1e6a0fe286075f52 Mon Sep 17 00:00:00 2001
From: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Wed, 25 Jan 2023 11:06:30 +0900
Subject: [PATCH v23 12/18] Don't include the size of RT_RADIX_TREE to memory
 usage as discussed.

---
 src/include/lib/radixtree.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/include/lib/radixtree.h b/src/include/lib/radixtree.h
index 0277d5e6fb..e9ff3aa05d 100644
--- a/src/include/lib/radixtree.h
+++ b/src/include/lib/radixtree.h
@@ -1927,8 +1927,7 @@ RT_END_ITERATE(RT_ITER *iter)
 RT_SCOPE uint64
 RT_MEMORY_USAGE(RT_RADIX_TREE *tree)
 {
-	// XXX is this necessary?
-	Size		total = sizeof(RT_RADIX_TREE);
+	Size		total = 0;
 
 #ifdef RT_SHMEM
 	Assert(tree->ctl->magic == RT_RADIX_TREE_MAGIC);
-- 
2.31.1