Skip to content

Commit 74fc81e

Browse files
committed
Fix CreateTableSpace() so it will compile without HAVE_SYMLINK.
This has been broken since 9.3 (commit 82b1b21 to be exact), which suggests that nobody is any longer using a Windows build system that doesn't provide a symlink emulation. Still, it's wrong on its own terms, so repair. YUriy Zhuravlev
1 parent 2960229 commit 74fc81e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/commands/tablespace.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,14 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
380380

381381
/* We keep the lock on pg_tablespace until commit */
382382
heap_close(rel, NoLock);
383+
384+
return tablespaceoid;
383385
#else /* !HAVE_SYMLINK */
384386
ereport(ERROR,
385387
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
386388
errmsg("tablespaces are not supported on this platform")));
389+
return InvalidOid; /* keep compiler quiet */
387390
#endif /* HAVE_SYMLINK */
388-
389-
return tablespaceoid;
390391
}
391392

392393
/*

0 commit comments

Comments
 (0)