Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 21e3edd

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 to update to that version rather than trusting this cosmetic patch. As was recently noted by Stephen Tyler, this patch was only masking the problem in the context of DROP TABLESPACE, but the failure could occur in other places such as pg_xlog cleanup.
1 parent 089f4b9 commit 21e3edd

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)