diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-24 15:35:37 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-24 15:35:37 -0400 |
commit | 846681fdd574548d4f430f2ff7ab44d77b4c79fe (patch) | |
tree | 72eed3f0c406a44333cde49d3c829b4420134946 /src/bin/pg_dump/pg_backup_archiver.h | |
parent | 9e257a181cc1dc5e19eb5d770ce09cc98f470f5f (diff) |
Fix some unportable constructs in parallel pg_dump code.
Didn't compile on semi-obsolete gcc, and probably not on not-gcc-at-all
either.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_archiver.h')
-rw-r--r-- | src/bin/pg_dump/pg_backup_archiver.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.h b/src/bin/pg_dump/pg_backup_archiver.h index 2f9434efbcc..59af815802e 100644 --- a/src/bin/pg_dump/pg_backup_archiver.h +++ b/src/bin/pg_dump/pg_backup_archiver.h @@ -114,7 +114,12 @@ struct _tocEntry; struct _restoreList; struct ParallelArgs; struct ParallelState; -enum T_Action; + +typedef enum T_Action +{ + ACT_DUMP, + ACT_RESTORE +} T_Action; typedef void (*ClosePtr) (struct _archiveHandle * AH); typedef void (*ReopenPtr) (struct _archiveHandle * AH); @@ -145,9 +150,9 @@ typedef void (*DeClonePtr) (struct _archiveHandle * AH); typedef char *(*WorkerJobRestorePtr) (struct _archiveHandle * AH, struct _tocEntry * te); typedef char *(*WorkerJobDumpPtr) (struct _archiveHandle * AH, struct _tocEntry * te); typedef char *(*MasterStartParallelItemPtr) (struct _archiveHandle * AH, struct _tocEntry * te, - enum T_Action act); + T_Action act); typedef int (*MasterEndParallelItemPtr) (struct _archiveHandle * AH, struct _tocEntry * te, - const char *str, enum T_Action act); + const char *str, T_Action act); typedef size_t (*CustomOutPtr) (struct _archiveHandle * AH, const void *buf, size_t len); |