1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Wrote a component test, which has a stand-in server thread

in place of an actual StorageManager.  The server thread
returns the same error over and over again.

Used that test to debug some basic comm stuff & find
errors in error handling.
This commit is contained in:
Patrick LeBlanc
2019-01-24 16:52:26 -06:00
parent f063f78242
commit acb464618c
7 changed files with 256 additions and 31 deletions

View File

@ -42,14 +42,15 @@ class SocketPool : public boost::noncopyable
private:
int getSocket();
void returnSocket(const int sock);
void remoteClosed(const int sock);
std::vector<int> allSockets;
std::deque<int> freeSockets;
boost::mutex mutex;
boost::condition_variable socketAvailable;
int clientSocket;
uint maxSockets;
static const uint defaultSockets = 20;
};
}