Skip to content

Commit

Permalink
CPP keywords should not be used as function/parameter names (#449)
Browse files Browse the repository at this point in the history
Also extern "C" will not work in this case. Current change remove the delete which defined as parameter.
  • Loading branch information
jiaqizho authored May 24, 2024
1 parent 9b9fd5b commit c226e0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/backend/catalog/storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/include/catalog/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c226e0c

Please sign in to comment.