This is an automated email from the ASF dual-hosted git repository. reshke pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 46aec1a20c564d026c51dd4a9e3297cae4bcc3bb Author: reshke <[email protected]> AuthorDate: Tue Mar 10 19:42:02 2026 +0000 fix typos & add MPP support for `allow_inplace_tablespace` --- src/backend/access/transam/xlog.c | 2 +- src/backend/commands/dbcommands.c | 4 ++-- src/backend/commands/tablespace.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index c9eb26bf700..bfba08fa267 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -8783,7 +8783,7 @@ CheckRecoveryConsistency(void) } /* * Check that pg_tblspc doesn't contain any real directories. Replay - * of Database/CREATE_* records may have created ficticious tablespace + * of Database/CREATE_* records may have created fictitious tablespace * directories that should have been removed by the time consistency * was reached. */ diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 78cc98f998d..60f521ed933 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -2447,7 +2447,7 @@ recovery_create_dbdir(char *path, bool only_tblspc) return; if (only_tblspc && strstr(path, "pg_tblspc/") == NULL) - elog(PANIC, "requested to created invalid directory: %s", path); + elog(PANIC, "requested to create invalid directory: %s", path); if (reachedConsistency && !allow_in_place_tablespaces) ereport(PANIC, @@ -2519,7 +2519,7 @@ dbase_redo(XLogReaderState *record) /* * There's a case where the copy source directory is missing for the - * same reason above. Create the emtpy source directory so that + * same reason above. Create the empty source directory so that * copydir below doesn't fail. The directory will be dropped soon by * recovery. */ diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index 5075b64746f..2416522d016 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -898,7 +898,7 @@ create_tablespace_directories(const char *location, const Oid tablespaceoid) * tablespace path. Unlike the location_with_version_dir, do not error out * if it already exists. */ - if (stat(location_with_dbid_dir, &st) < 0) + if (!in_place && stat(location_with_dbid_dir, &st) < 0) { if (errno == ENOENT) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
