split DUMPLOG
DUMPLOG requests the DUMPLOG feature as it does now DUMPLOG_CORE requests the internal buffering only (used for CRASHREPORT) This allows CRASHREPORT to access recent messages without performing any file I/O.
This commit is contained in:
@@ -6611,7 +6611,7 @@ yn_function(
|
||||
{
|
||||
char res = '\033', qbuf[QBUFSZ];
|
||||
struct _cmd_queue cq, *cmdq;
|
||||
#ifdef DUMPLOG
|
||||
#ifdef DUMPLOG_CORE
|
||||
unsigned idx = gs.saved_pline_index;
|
||||
/* buffer to hold query+space+formatted_single_char_response */
|
||||
char dumplog_buf[QBUFSZ + 1 + 15]; /* [QBUFSZ+1+7] should suffice */
|
||||
@@ -6653,7 +6653,7 @@ yn_function(
|
||||
cmdq_add_key(CQ_REPEAT, res);
|
||||
}
|
||||
|
||||
#ifdef DUMPLOG
|
||||
#ifdef DUMPLOG_CORE
|
||||
if (idx == gs.saved_pline_index) {
|
||||
/* when idx is still the same as gs.saved_pline_index, the interface
|
||||
didn't put the prompt into gs.saved_plines[]; we put a simplified
|
||||
|
||||
Reference in New Issue
Block a user