You've already forked mariadb-columnstore-engine
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user