You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by av...@apache.org on 2025/01/23 09:05:11 UTC
(cloudberry) 19/26: Remove unused buf[MAXPGPATH] variable in mdcreate_ao()
This is an automated email from the ASF dual-hosted git repository.
avamingli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 764855abc399abf5516318e7c7c299dbf1795db6
Author: Haolin Wang <wh...@vmware.com>
AuthorDate: Tue Feb 27 15:41:37 2024 +0800
Remove unused buf[MAXPGPATH] variable in mdcreate_ao()
---
src/backend/storage/smgr/md.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c
index 7b8dc1a345..4505df9153 100644
--- a/src/backend/storage/smgr/md.c
+++ b/src/backend/storage/smgr/md.c
@@ -245,7 +245,6 @@ void
mdcreate_ao(RelFileNodeBackend rnode, int32 segmentFileNum, bool isRedo)
{
char *path;
- char buf[MAXPGPATH];
File fd;
path = aorelpath(rnode, segmentFileNum);
@@ -274,8 +273,7 @@ mdcreate_ao(RelFileNodeBackend rnode, int32 segmentFileNum, bool isRedo)
}
}
- if (path != buf)
- pfree(path);
+ pfree(path);
}
/*
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org