Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5abfe148
Commit
5abfe148
authored
Jan 16, 1997
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SetBufferWriteMode () added; FlushLocalBuffer () fixed (shouldn't
release buffer if called from WriteNoReleaseBuffer ())
parent
9e41af2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/include/storage/buf_internals.h
src/include/storage/buf_internals.h
+2
-2
src/include/storage/bufmgr.h
src/include/storage/bufmgr.h
+8
-1
No files found.
src/include/storage/buf_internals.h
View file @
5abfe148
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: buf_internals.h,v 1.
7 1996/12/04 03:06:27 bryanh
Exp $
* $Id: buf_internals.h,v 1.
8 1997/01/16 07:53:26 vadim
Exp $
*
* NOTE
* If BUFFERPAGE0 is defined, then 0 will be used as a
...
...
@@ -200,7 +200,7 @@ extern int NLocBuffer;
extern
BufferDesc
*
LocalBufferAlloc
(
Relation
reln
,
BlockNumber
blockNum
,
bool
*
foundPtr
);
extern
int
WriteLocalBuffer
(
Buffer
buffer
,
bool
release
);
extern
int
FlushLocalBuffer
(
Buffer
buffer
);
extern
int
FlushLocalBuffer
(
Buffer
buffer
,
bool
release
);
extern
void
InitLocalBuffer
(
void
);
extern
void
LocalBufferSync
(
void
);
extern
void
ResetLocalBufferPool
(
void
);
...
...
src/include/storage/bufmgr.h
View file @
5abfe148
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: bufmgr.h,v 1.
8 1997/01/14 05:36:15
vadim Exp $
* $Id: bufmgr.h,v 1.
9 1997/01/16 07:53:27
vadim Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -62,6 +62,12 @@ typedef bits16 BufferLock;
extern
int
ShowPinTrace
;
/*
* BufferWriteModes (settable via SetBufferWriteMode)
*/
#define BUFFER_FLUSH_WRITE 0
/* immediate write */
#define BUFFER_LATE_WRITE 1
/* delayed write: mark as DIRTY */
/*
* prototypes for functions in bufmgr.c
*/
...
...
@@ -107,6 +113,7 @@ extern int ReleaseAndReadBuffer_Debug(char *file,
BlockNumber
blockNum
);
extern
void
BufferRefCountReset
(
int
*
refcountsave
);
extern
void
BufferRefCountRestore
(
int
*
refcountsave
);
extern
int
SetBufferWriteMode
(
int
mode
);
#endif
/* !defined(BufMgrIncluded) */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment