|
11 | 11 | * Portions Copyright (c) 1994, Regents of the University of California |
12 | 12 | * |
13 | 13 | * IDENTIFICATION |
14 | | - * $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.24 2010/05/26 19:52:52 sriggs Exp $ |
| 14 | + * $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.25 2010/06/14 00:49:24 itagaki Exp $ |
15 | 15 | * |
16 | 16 | *------------------------------------------------------------------------- |
17 | 17 | */ |
@@ -184,11 +184,9 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist, |
184 | 184 | intlen; |
185 | 185 |
|
186 | 186 | old_status=get_ps_display(&len); |
187 | | -new_status= (char*)palloc(len+50); |
| 187 | +new_status= (char*)palloc(len+8+1); |
188 | 188 | memcpy(new_status,old_status,len); |
189 | | -snprintf(new_status+len,50, |
190 | | -" waiting for max_standby_delay (%d ms)", |
191 | | -MaxStandbyDelay); |
| 189 | +strcpy(new_status+len," waiting"); |
192 | 190 | set_ps_display(new_status, false); |
193 | 191 | new_status[len]='\0';/* truncate off " waiting" */ |
194 | 192 | } |
|