OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e36343
)
Reset walsender ps title in the main loop
author
Magnus Hagander
<magnus@hagander.net>
Tue, 11 Jan 2011 09:04:54 +0000
(10:04 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Tue, 11 Jan 2011 09:04:54 +0000
(10:04 +0100)
When in streaming mode we can never get out, so it will never
be required, but after a base backup (or other operations)
we can get back to the loop, so the title needs to be cleared.
src/backend/replication/walsender.c
patch
|
blob
|
history
diff --git
a/src/backend/replication/walsender.c
b/src/backend/replication/walsender.c
index
bd35f31
..
559e734
100644
(file)
--- a/
src/backend/replication/walsender.c
+++ b/
src/backend/replication/walsender.c
@@
-179,6
+179,8
@@
WalSndHandshake(void)
{
int firstchar;
+ set_ps_display("idle", false);
+
/* Wait for a command to arrive */
firstchar = pq_getbyte();