Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pglite-REL_17_4_WASM/interactive_one.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,14 +524,14 @@ PDEBUG("# 500: NO DATA:" PGS_IN );
printf("\n# 500: fd=%d is_embed=%d is_repl=%d is_wire=%d fd %s,len=%d cma=%d peek=%d [%s]\n", MyProcPort->sock, is_embed, is_repl, is_wire, PGS_OLOCK, packetlen,cma_rsize, peek, IO);
#endif

// buffer query TODO: direct access ?
// CMA wire mode. -> packetlen was set to cma_rsize
resetStringInfo(inBuf);

for (int i=0; i<packetlen; i++) {
appendStringInfoChar(inBuf, IO[i]);
// when cma buffer is used to fake stdin, data is not read by socket/wire backend.
if (is_repl) {
for (int i=0; i<packetlen; i++) {
appendStringInfoChar(inBuf, IO[i]);
}
}

if (packetlen<2) {
puts("# 512: WARNING: empty packet");
//cma_rsize= 0;
Expand Down