Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21e3edd

Browse files
committed
Revert the temporary patch to work around Snow Leopard readdir() bug.
Apple has fixed that bug in 10.6.2, and we should encourage users toupdate to that version rather than trusting this cosmetic patch.As was recently noted by Stephen Tyler, this patch was only maskingthe problem in the context of DROP TABLESPACE, but the failure couldoccur in other places such as pg_xlog cleanup.
1 parent089f4b9 commit21e3edd

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

‎src/backend/commands/tablespace.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.62 2009/09/12 15:51:52 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.63 2009/11/10 18:53:38 tgl Exp $
4141
*
4242
*-------------------------------------------------------------------------
4343
*/
@@ -612,17 +612,6 @@ remove_tablespace_directories(Oid tablespaceoid, bool redo)
612612
subfile)));
613613

614614
pfree(subfile);
615-
616-
/*
617-
* OS X 10.6 and 10.6.1 have a bug in readdir() that causes the
618-
* next call to fail after deleting the current element. Hopefully
619-
* that will be fixed real soon, but for the moment we have this
620-
* ugly kluge to restart the directory scan.
621-
*/
622-
#ifdef__darwin__
623-
FreeDir(dirdesc);
624-
dirdesc=AllocateDir(location);
625-
#endif
626615
}
627616

628617
FreeDir(dirdesc);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp