mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Transaction log manager core code.
It doesn't work currently but also don't break anything -:)
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Id: fd.c,v 1.47 1999/07/17 20:17:42 momjian Exp $
|
||||
* $Id: fd.c,v 1.48 1999/09/27 15:47:49 vadim Exp $
|
||||
*
|
||||
* NOTES:
|
||||
*
|
||||
@ -49,6 +49,7 @@
|
||||
#include "miscadmin.h"
|
||||
#include "storage/fd.h"
|
||||
|
||||
bool ReleaseDataFile(void);
|
||||
/*
|
||||
* Problem: Postgres does a system(ld...) to do dynamic loading.
|
||||
* This will open several extra files in addition to those used by
|
||||
@ -410,6 +411,19 @@ ReleaseLruFile()
|
||||
LruDelete(VfdCache[0].lruMoreRecently);
|
||||
}
|
||||
|
||||
bool
|
||||
ReleaseDataFile()
|
||||
{
|
||||
DO_DB(elog(DEBUG, "ReleaseDataFile. Opened %d", nfile));
|
||||
|
||||
if (nfile <= 0)
|
||||
return(false);
|
||||
Assert(VfdCache[0].lruMoreRecently != 0);
|
||||
LruDelete(VfdCache[0].lruMoreRecently);
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
static File
|
||||
AllocateVfd()
|
||||
{
|
||||
|
Reference in New Issue
Block a user