|
|
|
@ -7,7 +7,7 @@ |
|
|
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group |
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California |
|
|
|
|
* |
|
|
|
|
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.324 2008/12/17 01:39:03 momjian Exp $ |
|
|
|
|
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.325 2008/12/24 20:41:29 momjian Exp $ |
|
|
|
|
* |
|
|
|
|
*------------------------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
@ -1318,14 +1318,14 @@ AdvanceXLInsertBuffer(bool new_segment) |
|
|
|
|
* Have to write buffers while holding insert lock. This is |
|
|
|
|
* not good, so only write as much as we absolutely must. |
|
|
|
|
*/ |
|
|
|
|
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_START(); |
|
|
|
|
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_START(); |
|
|
|
|
WriteRqst.Write = OldPageRqstPtr; |
|
|
|
|
WriteRqst.Flush.xlogid = 0; |
|
|
|
|
WriteRqst.Flush.xrecoff = 0; |
|
|
|
|
XLogWrite(WriteRqst, false, false); |
|
|
|
|
LWLockRelease(WALWriteLock); |
|
|
|
|
Insert->LogwrtResult = LogwrtResult; |
|
|
|
|
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DONE(); |
|
|
|
|
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_DONE(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|