File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/backend/access/transam Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/access/transam/varsup.c,v 1.6 1996/11/05 11:12:31 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/varsup.c,v 1.7 1997/01/16 07:59:11 vadim Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -125,6 +125,7 @@ VariableRelationPutNextXid(TransactionId xid)
125
125
{
126
126
Buffer buf ;
127
127
VariableRelationContents var ;
128
+ int flushmode ;
128
129
129
130
/* ----------------
130
131
* We assume that a spinlock has been acquire to guarantee
@@ -156,7 +157,9 @@ VariableRelationPutNextXid(TransactionId xid)
156
157
157
158
TransactionIdStore (xid , & (var -> nextXidData ));
158
159
160
+ flushmode = SetBufferWriteMode (BUFFER_FLUSH_WRITE );
159
161
WriteBuffer (buf );
162
+ (void ) SetBufferWriteMode (flushmode );
160
163
}
161
164
162
165
/* --------------------------------
@@ -313,7 +316,7 @@ VariableRelationPutNextOid(Oid *oidP)
313
316
if (! BufferIsValid (buf ))
314
317
{
315
318
SpinRelease (OidGenLockId );
316
- elog (WARN , "VariableRelationPutNextXid : ReadBuffer failed" );
319
+ elog (WARN , "VariableRelationPutNextOid : ReadBuffer failed" );
317
320
}
318
321
319
322
var = (VariableRelationContents ) BufferGetBlock (buf );
You can’t perform that action at this time.
0 commit comments