git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26b7abf)
Remove max_standby_delay message from ps display of recovery process
2010年6月14日 00:49:24 +0000 (00:49 +0000)
2010年6月14日 00:49:24 +0000 (00:49 +0000)
in waiting status. The parameter is not so interesting in ps display
because it is referable in postgresql.conf.


diff --git a/src/backend/storage/ipc/standby.c b/src/backend/storage/ipc/standby.c
index 204969d3cb84e3db8549d418a98d178fd1ac8e2a..a61a4e62169fed468c5b90605c59ca7acc3f16f0 100644 (file)
--- a/src/backend/storage/ipc/standby.c
+++ b/src/backend/storage/ipc/standby.c
@@ -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.24 2010年05月26日 19:52:52 sriggs Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.25 2010年06月14日 00:49:24 itagaki Exp $
*
*-------------------------------------------------------------------------
*/
@@ -184,11 +184,9 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist,
int len;
old_status = get_ps_display(&len);
- new_status = (char *) palloc(len + 50);
+ new_status = (char *) palloc(len + 8 + 1);
memcpy(new_status, old_status, len);
- snprintf(new_status + len, 50,
- " waiting for max_standby_delay (%d ms)",
- MaxStandbyDelay);
+ strcpy(new_status + len, " waiting");
set_ps_display(new_status, false);
new_status[len] = '0円'; /* truncate off " waiting" */
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /