Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb634118

Browse files
committed
Add current seek position to FDDEBUG output for FileRead,
FileWrite, FileSeek.
1 parent6249971 commitb634118

File tree

1 file changed

+10
-7
lines changed
  • src/backend/storage/file

1 file changed

+10
-7
lines changed

‎src/backend/storage/file/fd.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.71 2001/01/24 19:43:06 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.72 2001/02/17 01:00:04 tgl Exp $
1111
*
1212
* NOTES:
1313
*
@@ -806,8 +806,9 @@ FileRead(File file, char *buffer, int amount)
806806

807807
Assert(FileIsValid(file));
808808

809-
DO_DB(elog(DEBUG,"FileRead: %d (%s) %d %p",
810-
file,VfdCache[file].fileName,amount,buffer));
809+
DO_DB(elog(DEBUG,"FileRead: %d (%s) %ld %d %p",
810+
file,VfdCache[file].fileName,
811+
VfdCache[file].seekPos,amount,buffer));
811812

812813
FileAccess(file);
813814
returnCode=read(VfdCache[file].fd,buffer,amount);
@@ -826,8 +827,9 @@ FileWrite(File file, char *buffer, int amount)
826827

827828
Assert(FileIsValid(file));
828829

829-
DO_DB(elog(DEBUG,"FileWrite: %d (%s) %d %p",
830-
file,VfdCache[file].fileName,amount,buffer));
830+
DO_DB(elog(DEBUG,"FileWrite: %d (%s) %ld %d %p",
831+
file,VfdCache[file].fileName,
832+
VfdCache[file].seekPos,amount,buffer));
831833

832834
FileAccess(file);
833835
returnCode=write(VfdCache[file].fd,buffer,amount);
@@ -844,8 +846,9 @@ FileSeek(File file, long offset, int whence)
844846
{
845847
Assert(FileIsValid(file));
846848

847-
DO_DB(elog(DEBUG,"FileSeek: %d (%s) %ld %d",
848-
file,VfdCache[file].fileName,offset,whence));
849+
DO_DB(elog(DEBUG,"FileSeek: %d (%s) %ld %ld %d",
850+
file,VfdCache[file].fileName,
851+
VfdCache[file].seekPos,offset,whence));
849852

850853
if (FileIsNotOpen(file))
851854
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp