You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
Checkpointing some stuff. Doesn't work yet.
This commit is contained in:
@@ -86,10 +86,20 @@ int SocketPool::send_recv(messageqcpp::ByteStream &in, messageqcpp::ByteStream *
|
||||
{
|
||||
uint count = 0;
|
||||
uint length = in.length();
|
||||
int sock = getSocket();
|
||||
int sock = -1;
|
||||
const uint8_t *inbuf = in.buf();
|
||||
int err = 0;
|
||||
|
||||
while (sock < 0)
|
||||
{
|
||||
sock = getSocket();
|
||||
if (sock < 0)
|
||||
{
|
||||
log(logging::LOG_TYPE_ERROR, "SocketPool::send_recv(): failed to get a connection, retrying in 5 sec...");
|
||||
sleep(5);
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: make these writes not send SIGPIPE */
|
||||
storagemanager::sm_msg_header hdr;
|
||||
hdr.type = storagemanager::SM_MSG_START;
|
||||
|
@@ -120,14 +120,14 @@ bool IDBPolicy::isLocalFile( const std::string& path )
|
||||
strmblen = funcexp::utf8::idb_wcstombs(outbuf, filepath.extension().c_str(), strmblen);
|
||||
string fileExt(outbuf, strmblen);
|
||||
#else
|
||||
string fileExt = filepath.extension().c_str();
|
||||
//string fileExt = filepath.extension().c_str();
|
||||
#endif
|
||||
bool isXml = (fileExt == ".xml");
|
||||
|
||||
bool isXml = filepath.extension() == ".xml";
|
||||
bool isDbrm = path.find("dbrm") != string::npos; // StorageManager: make this depend on config values
|
||||
bool isVb = path.find("versionbuffer") != string::npos;
|
||||
bool isScratch = path.find(s_hdfsRdwrScratch) == 0;
|
||||
|
||||
return isXml || isVb || isScratch;
|
||||
return isXml || isDbrm || isVb || isScratch;
|
||||
}
|
||||
|
||||
IDBDataFile::Types IDBPolicy::getType( const std::string& path, Contexts ctxt )
|
||||
|
Reference in New Issue
Block a user