Skip to content

Commit e9bacfc

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 658ec62 commit e9bacfc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/commands/tablespace.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,14 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
366366

367367
/* We keep the lock on pg_tablespace until commit */
368368
heap_close(rel, NoLock);
369+
370+
return tablespaceoid;
369371
#else /* !HAVE_SYMLINK */
370372
ereport(ERROR,
371373
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
372374
errmsg("tablespaces are not supported on this platform")));
375+
return InvalidOid; /* keep compiler quiet */
373376
#endif /* HAVE_SYMLINK */
374-
375-
return tablespaceoid;
376377
}
377378

378379
/*

0 commit comments

Comments
 (0)