1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-13 01:00:23 +02:00

Reword misleading message in stack trace when parameter buffer is full.

The prior message stated that there had been a buffer overrun which is not true since the code prevents that.

In fact, this message means the parameter buffer filled while building the parameter list. Rather than display a partial list we output this message instead.

Also remove !!! which by convention we use as a marker for code that needs attention before it can be committed to master.
This commit is contained in:
David Steele
2018-11-14 08:11:11 -05:00
parent 8c7e97a369
commit 14d2f8b86c
3 changed files with 8 additions and 4 deletions

View File

@ -169,7 +169,7 @@ stackTraceParamIdx(int stackIdx)
if (data->paramLog)
{
if (data->paramOverflow)
return "!!! buffer overflow - parameters not available !!!";
return "buffer full - parameters not available";
if (data->paramSize == 0)
return "void";