mirror of
https://github.com/postgres/postgres.git
synced 2026-07-15 20:52:53 -04:00
Use proper type for RestoreTransactionSnapshot's PGPROC arg
Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/08cbaeb5-aaaf-47b6-9ed8-4f7455b0bc4b@iki.fi
This commit is contained in:
parent
44f49511b7
commit
47a9f61fca
2 changed files with 3 additions and 5 deletions
|
|
@ -1848,12 +1848,9 @@ RestoreSnapshot(char *start_address)
|
|||
|
||||
/*
|
||||
* Install a restored snapshot as the transaction snapshot.
|
||||
*
|
||||
* The second argument is of type void * so that snapmgr.h need not include
|
||||
* the declaration for PGPROC.
|
||||
*/
|
||||
void
|
||||
RestoreTransactionSnapshot(Snapshot snapshot, void *source_pgproc)
|
||||
RestoreTransactionSnapshot(Snapshot snapshot, PGPROC *source_pgproc)
|
||||
{
|
||||
SetTransactionSnapshot(snapshot, NULL, InvalidPid, source_pgproc);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ extern bool HistoricSnapshotActive(void);
|
|||
extern Size EstimateSnapshotSpace(Snapshot snapshot);
|
||||
extern void SerializeSnapshot(Snapshot snapshot, char *start_address);
|
||||
extern Snapshot RestoreSnapshot(char *start_address);
|
||||
extern void RestoreTransactionSnapshot(Snapshot snapshot, void *source_pgproc);
|
||||
struct PGPROC;
|
||||
extern void RestoreTransactionSnapshot(Snapshot snapshot, struct PGPROC *source_pgproc);
|
||||
|
||||
#endif /* SNAPMGR_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue