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
7c07006a
Commit
7c07006a
authored
Feb 15, 2000
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up error and log messages.
parent
f4ca323d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+7
-7
No files found.
src/backend/access/transam/xlog.c
View file @
7c07006a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.
9 2000/01/26 05:56:04 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.
10 2000/02/15 03:00:37 thomas
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -995,7 +995,7 @@ next_record_is_invalid:;
...
@@ -995,7 +995,7 @@ next_record_is_invalid:;
readId
=
EndRecPtr
.
xlogid
;
readId
=
EndRecPtr
.
xlogid
;
readSeg
=
EndRecPtr
.
xrecoff
/
XLogSegSize
;
readSeg
=
EndRecPtr
.
xrecoff
/
XLogSegSize
;
readOff
=
(
EndRecPtr
.
xrecoff
%
XLogSegSize
)
/
BLCKSZ
;
readOff
=
(
EndRecPtr
.
xrecoff
%
XLogSegSize
)
/
BLCKSZ
;
elog
(
LOG
,
"Formating logfile %u seg %u block %u at offset %u"
,
elog
(
LOG
,
"Format
t
ing logfile %u seg %u block %u at offset %u"
,
readId
,
readSeg
,
readOff
,
EndRecPtr
.
xrecoff
%
BLCKSZ
);
readId
,
readSeg
,
readOff
,
EndRecPtr
.
xrecoff
%
BLCKSZ
);
readFile
=
XLogFileOpen
(
readId
,
readSeg
,
false
);
readFile
=
XLogFileOpen
(
readId
,
readSeg
,
false
);
if
(
lseek
(
readFile
,
(
off_t
)(
readOff
*
BLCKSZ
),
SEEK_SET
)
<
0
)
if
(
lseek
(
readFile
,
(
off_t
)(
readOff
*
BLCKSZ
),
SEEK_SET
)
<
0
)
...
@@ -1026,7 +1026,7 @@ next_record_is_invalid:;
...
@@ -1026,7 +1026,7 @@ next_record_is_invalid:;
if
(
readOff
>
0
)
if
(
readOff
>
0
)
{
{
if
(
!
XLByteEQ
(
tmpRecPtr
,
EndRecPtr
))
if
(
!
XLByteEQ
(
tmpRecPtr
,
EndRecPtr
))
elog
(
LOG
,
"Formating logfile %u seg %u block %u at offset 0"
,
elog
(
LOG
,
"Format
t
ing logfile %u seg %u block %u at offset 0"
,
readId
,
readSeg
,
readOff
);
readId
,
readSeg
,
readOff
);
readOff
*=
BLCKSZ
;
readOff
*=
BLCKSZ
;
memset
(
readBuf
,
0
,
BLCKSZ
);
memset
(
readBuf
,
0
,
BLCKSZ
);
...
@@ -1285,7 +1285,7 @@ tryAgain:
...
@@ -1285,7 +1285,7 @@ tryAgain:
ControlFile
->
catalog_version_no
,
CATALOG_VERSION_NO
);
ControlFile
->
catalog_version_no
,
CATALOG_VERSION_NO
);
if
(
ControlFile
->
state
==
DB_SHUTDOWNED
)
if
(
ControlFile
->
state
==
DB_SHUTDOWNED
)
elog
(
LOG
,
"Data Base System was shut
downed
at %s"
,
elog
(
LOG
,
"Data Base System was shut
down
at %s"
,
str_time
(
ControlFile
->
time
));
str_time
(
ControlFile
->
time
));
else
if
(
ControlFile
->
state
==
DB_SHUTDOWNING
)
else
if
(
ControlFile
->
state
==
DB_SHUTDOWNING
)
elog
(
LOG
,
"Data Base System was interrupted when shutting down at %s"
,
elog
(
LOG
,
"Data Base System was interrupted when shutting down at %s"
,
...
@@ -1349,7 +1349,7 @@ tryAgain:
...
@@ -1349,7 +1349,7 @@ tryAgain:
if
(
recovery
>
0
)
if
(
recovery
>
0
)
{
{
elog
(
LOG
,
"The DataBase system was not properly shut
downed
\n
"
elog
(
LOG
,
"The DataBase system was not properly shut
down
\n
"
"
\t
Automatic recovery is in progress..."
);
"
\t
Automatic recovery is in progress..."
);
ControlFile
->
state
=
DB_IN_RECOVERY
;
ControlFile
->
state
=
DB_IN_RECOVERY
;
ControlFile
->
time
=
time
(
NULL
);
ControlFile
->
time
=
time
(
NULL
);
...
@@ -1456,11 +1456,11 @@ void
...
@@ -1456,11 +1456,11 @@ void
ShutdownXLOG
()
ShutdownXLOG
()
{
{
elog
(
LOG
,
"Data Base System
is
shutting down at %s"
,
str_time
(
time
(
NULL
)));
elog
(
LOG
,
"Data Base System shutting down at %s"
,
str_time
(
time
(
NULL
)));
CreateCheckPoint
(
true
);
CreateCheckPoint
(
true
);
elog
(
LOG
,
"Data Base System
is shutdowned
at %s"
,
str_time
(
time
(
NULL
)));
elog
(
LOG
,
"Data Base System
shut down
at %s"
,
str_time
(
time
(
NULL
)));
}
}
void
void
...
...
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