From 78aa813493662fd101a39a8d510d9e0483888c07 Mon Sep 17 00:00:00 2001 From: zhoujiaqi Date: Fri, 24 May 2024 14:35:56 +0800 Subject: [PATCH] CPP keywords should not be used as function/parameter names --- src/backend/catalog/storage.c | 10 +++++----- src/include/catalog/storage.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backend/catalog/storage.c b/src/backend/catalog/storage.c index 76a9f7e12e5..9c862971153 100644 --- a/src/backend/catalog/storage.c +++ b/src/backend/catalog/storage.c @@ -630,12 +630,12 @@ RestorePendingSyncs(char *startAddress) } void -RegisterPendingDelete(struct PendingRelDelete *delete) +RegisterPendingDelete(struct PendingRelDelete *pending) { - Assert(delete); - Assert(delete->action); - delete->next = pendingDeletes; - pendingDeletes = delete; + Assert(pending); + Assert(pending->action); + pending->next = pendingDeletes; + pendingDeletes = pending; } /* diff --git a/src/include/catalog/storage.h b/src/include/catalog/storage.h index 5fcf27a70df..3378b18434f 100644 --- a/src/include/catalog/storage.h +++ b/src/include/catalog/storage.h @@ -120,7 +120,7 @@ extern void SerializePendingSyncs(Size maxSize, char *startAddress); extern void RestorePendingSyncs(char *startAddress); /* register a pending delete item into pending delete list */ -void RegisterPendingDelete(struct PendingRelDelete *delete); +void RegisterPendingDelete(struct PendingRelDelete *pending); /* * These functions used to be in storage/smgr/smgr.c, which explains the