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
19c7a59b
Commit
19c7a59b
authored
Apr 06, 2010
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change some debug ereports to elogs, as requested by translation team.
parent
08c1d4e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/procarray.c
+7
-10
src/backend/storage/ipc/standby.c
src/backend/storage/ipc/standby.c
+7
-7
No files found.
src/backend/storage/ipc/procarray.c
View file @
19c7a59b
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.6
1 2010/03/11 09:26:59 heikki
Exp $
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.6
2 2010/04/06 10:50:57 sriggs
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2220,9 +2220,8 @@ RecordKnownAssignedTransactionIds(TransactionId xid)
if
(
TransactionIdPrecedes
(
xid
,
snapshotOldestActiveXid
))
return
;
ereport
(
trace_recovery
(
DEBUG4
),
(
errmsg
(
"record known xact %u latestObservedXid %u"
,
xid
,
latestObservedXid
)));
elog
(
trace_recovery
(
DEBUG4
),
"record known xact %u latestObservedXid %u"
,
xid
,
latestObservedXid
);
/*
* When a newly observed xid arrives, it is frequently the case that it is
...
...
@@ -2253,9 +2252,9 @@ RecordKnownAssignedTransactionIds(TransactionId xid)
while
(
TransactionIdPrecedesOrEquals
(
next_expected_xid
,
xid
))
{
if
(
TransactionIdPrecedes
(
next_expected_xid
,
xid
))
e
report
(
trace_recovery
(
DEBUG4
),
(
errmsg
(
"recording unobserved xid %u (latestObservedXid %u)"
,
next_expected_xid
,
latestObservedXid
)
))
;
e
log
(
trace_recovery
(
DEBUG4
),
"recording unobserved xid %u (latestObservedXid %u)"
,
next_expected_xid
,
latestObservedXid
);
KnownAssignedXidsAdd
(
&
next_expected_xid
,
1
);
/*
...
...
@@ -2374,9 +2373,7 @@ KnownAssignedXidsAdd(TransactionId *xids, int nxids)
{
KnownAssignedXidsDisplay
(
LOG
);
LWLockRelease
(
ProcArrayLock
);
ereport
(
ERROR
,
(
errcode
(
ERRCODE_OUT_OF_MEMORY
),
errmsg
(
"too many KnownAssignedXids"
)));
elog
(
ERROR
,
"too many KnownAssignedXids (%u)"
,
procArray
->
maxKnownAssignedXids
);
}
result
=
(
TransactionId
*
)
hash_search
(
KnownAssignedXidsHash
,
&
xids
[
i
],
HASH_ENTER
,
...
...
src/backend/storage/ipc/standby.c
View file @
19c7a59b
...
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.1
5 2010/03/11 09:10:25 heikki
Exp $
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.1
6 2010/04/06 10:50:57 sriggs
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -857,19 +857,19 @@ LogCurrentRunningXacts(RunningTransactions CurrRunningXacts)
recptr
=
XLogInsert
(
RM_STANDBY_ID
,
XLOG_RUNNING_XACTS
,
rdata
);
if
(
CurrRunningXacts
->
subxid_overflow
)
e
report
(
trace_recovery
(
DEBUG2
),
(
errmsg
(
"snapshot of %u running transactions overflowed (lsn %X/%X oldest xid %u next xid %u)"
,
e
log
(
trace_recovery
(
DEBUG2
),
"snapshot of %u running transactions overflowed (lsn %X/%X oldest xid %u next xid %u)"
,
CurrRunningXacts
->
xcnt
,
recptr
.
xlogid
,
recptr
.
xrecoff
,
CurrRunningXacts
->
oldestRunningXid
,
CurrRunningXacts
->
nextXid
)
))
;
CurrRunningXacts
->
nextXid
);
else
e
report
(
trace_recovery
(
DEBUG2
),
(
errmsg
(
"snapshot of %u running transaction ids (lsn %X/%X oldest xid %u next xid %u)"
,
e
log
(
trace_recovery
(
DEBUG2
),
"snapshot of %u running transaction ids (lsn %X/%X oldest xid %u next xid %u)"
,
CurrRunningXacts
->
xcnt
,
recptr
.
xlogid
,
recptr
.
xrecoff
,
CurrRunningXacts
->
oldestRunningXid
,
CurrRunningXacts
->
nextXid
)
))
;
CurrRunningXacts
->
nextXid
);
}
...
...
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