1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-5105 This patch raises pipe read operation timeout to 20 minutes

to enable DMLProc to survive rollbacks on startup.
The patch also fixes linter warnings in service.h and pipe.h.
This commit is contained in:
Roman Nozdrin
2022-06-09 14:24:17 +00:00
parent 94ba91c687
commit 7c9da5709d
2 changed files with 12 additions and 2 deletions

View File

@ -20,6 +20,11 @@
/*
A helper class to hold the file descriptors returned from a pipe() call.
*/
#include <sys/types.h>
#include <unistd.h>
#include <cerrno>
#include <string>
class Pipe
{
int fd[2];
@ -60,7 +65,7 @@ class Pipe
FD_ZERO(&rfds);
FD_SET(fd[0], &rfds);
struct timeval tmptv = tv;
int retval = select(fd[0] + 1, &rfds, NULL, NULL, &tmptv);
int retval = select(fd[0] + 1, &rfds, nullptr, nullptr, &tmptv);
if (retval == -1)
return -1;
if (!retval)