src/backend/utils/sort/logtape.c
/*
 * Dump the dirty buffer of a logical tape.
 */
Dump the dirty buffer of a logical tape.
Dump the dirty buffer of a logical tape .
static void
ltsDumpBuffer(LogicalTapeSet *lts, LogicalTape *lt)
{
	long		datablock = ltsGetFreeBlock(lts);
	Assert(lt->dirty);
	ltsWriteBlock(lts, datablock, (void *) lt->buffer);
	ltsRecordBlockNum(lts, lt->indirect, datablock);
	lt->dirty = false;
}
static void ltsDumpBuffer ( LogicalTapeSet * lts , LogicalTape * lt ) { long datablock = ltsGetFreeBlock ( lts ) ; Assert ( lt -> dirty ) ; ltsWriteBlock ( lts , datablock , ( void * ) lt -> buffer ) ; ltsRecordBlockNum ( lts , lt -> indirect , datablock ) ; lt -> dirty = false ; }
Dump the dirty buffer of a logical tape.
Dump the dirty buffer of a logical tape .
/* Caller must do other state update as needed */