|
|
|
@ -7,7 +7,7 @@ |
|
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group |
|
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group |
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California |
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California |
|
|
|
* |
|
|
|
* |
|
|
|
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.222.2.6 2007/09/29 01:36:29 tgl Exp $ |
|
|
|
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.222.2.7 2008/05/13 20:53:58 mha Exp $ |
|
|
|
* |
|
|
|
* |
|
|
|
*------------------------------------------------------------------------- |
|
|
|
*------------------------------------------------------------------------- |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -2934,8 +2934,11 @@ got_record:; |
|
|
|
return (XLogRecord *) buffer; |
|
|
|
return (XLogRecord *) buffer; |
|
|
|
|
|
|
|
|
|
|
|
next_record_is_invalid:; |
|
|
|
next_record_is_invalid:; |
|
|
|
|
|
|
|
if (readFile >= 0) |
|
|
|
|
|
|
|
{ |
|
|
|
close(readFile); |
|
|
|
close(readFile); |
|
|
|
readFile = -1; |
|
|
|
readFile = -1; |
|
|
|
|
|
|
|
} |
|
|
|
nextRecord = NULL; |
|
|
|
nextRecord = NULL; |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
|