diff options
| author | Bruce Momjian <bruce@momjian.us> | 2010-10-19 22:37:04 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2010-10-19 22:37:04 +0000 |
| commit | 07456b45e6359e8a15807e3f71c0f2e6a76fa4e9 (patch) | |
| tree | b4694ef2be2c1b0284ec00771fda6d9ab5ddd96d /contrib/pg_upgrade/tablespace.c | |
| parent | e13f7e9a711c9117e438516537066bbe61df6455 (diff) | |
Pgindent run on pg_upgrade source after restructuring.
Diffstat (limited to 'contrib/pg_upgrade/tablespace.c')
| -rw-r--r-- | contrib/pg_upgrade/tablespace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/pg_upgrade/tablespace.c b/contrib/pg_upgrade/tablespace.c index 6dc274a1afd..1f361b65ab9 100644 --- a/contrib/pg_upgrade/tablespace.c +++ b/contrib/pg_upgrade/tablespace.c @@ -23,7 +23,7 @@ init_tablespaces(void) set_tablespace_directory_suffix(CLUSTER_NEW); if (os_info.num_tablespaces > 0 && - strcmp(old_cluster.tablespace_suffix, new_cluster.tablespace_suffix) == 0) + strcmp(old_cluster.tablespace_suffix, new_cluster.tablespace_suffix) == 0) pg_log(PG_FATAL, "Cannot migrate to/from the same system catalog version when\n" "using tablespaces.\n"); @@ -52,7 +52,7 @@ get_tablespace_paths(void) if ((os_info.num_tablespaces = PQntuples(res)) != 0) os_info.tablespaces = (char **) pg_malloc( - os_info.num_tablespaces * sizeof(char *)); + os_info.num_tablespaces * sizeof(char *)); else os_info.tablespaces = NULL; @@ -81,8 +81,8 @@ set_tablespace_directory_suffix(Cluster whichCluster) { /* This cluster has a version-specific subdirectory */ active_cluster->tablespace_suffix = pg_malloc(4 + - strlen(active_cluster->major_version_str) + - 10 /* OIDCHARS */ + 1); + strlen(active_cluster->major_version_str) + + 10 /* OIDCHARS */ + 1); /* The leading slash is needed to start a new directory. */ sprintf(active_cluster->tablespace_suffix, "/PG_%s_%d", active_cluster->major_version_str, |
