diff options
| author | Pavan Deolasee | 2015-11-13 13:21:09 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2015-11-13 13:26:40 +0000 |
| commit | 20a773eecf419c605be78e06527a195e48b05dce (patch) | |
| tree | 9d81648b7c354267f0023e4b42d8206b78ae48fd /src/bin/initgtm | |
| parent | cb6766e3a690b9cf445b6230f2d82fc8bc87fcf6 (diff) | |
Remove a lot of XC-specific code from the repo.
Per discussion on the developer list, this patch removes a bulk of XC-specific
code which is not relevant in XL. This code was mostly left-over in #ifdef
blocks, thus complicating code-reading, bug fixes and merges. One can always do
a "git diff" with the XC code base to see the exact differences.
We still continue to use #ifdef PGXC and #ifdef XCP interchangeably because of
the way code was written. Something we should change. Also, there is probably
still some more dead code (because files were copied to different place or
because the code is not referenced in XL). This requires another cleanup patch,
but not something I plan to do immediately
Diffstat (limited to 'src/bin/initgtm')
| -rw-r--r-- | src/bin/initgtm/initgtm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bin/initgtm/initgtm.c b/src/bin/initgtm/initgtm.c index dd451d66e3..f78f1f5d17 100644 --- a/src/bin/initgtm/initgtm.c +++ b/src/bin/initgtm/initgtm.c @@ -744,11 +744,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo) static void usage(const char *progname) { -#ifdef XCP printf(_("%s initializes GTM for a Postgres-XL database cluster.\n\n"), progname); -#else - printf(_("%s initializes a GTM for Postgres-XC database cluster.\n\n"), progname); -#endif printf(_("Usage:\n")); printf(_(" %s [NODE-TYPE] [OPTION]... [DATADIR]\n"), progname); printf(_("\nOptions:\n")); @@ -799,11 +795,7 @@ main(int argc, char *argv[]) } if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0) { -#ifdef XCP puts("initgtm (Postgres-XL) " PGXC_VERSION); -#else - puts("initgtm (Postgres-XC) " PGXC_VERSION); -#endif exit(0); } } |
