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

MCOL-3577: Add functionality to sync S3 storage for suspendDatabaseWrites.

This commit is contained in:
benthompson15
2019-11-20 11:57:55 -06:00
parent dbb9b21d26
commit 5bbd21b8e0
13 changed files with 189 additions and 4 deletions

View File

@ -247,6 +247,20 @@ int SMComm::ping()
common_exit(command, response, err);
}
int SMComm::sync()
{
ByteStream *command = buffers.getByteStream();
ByteStream *response = buffers.getByteStream();
ssize_t err;
*command << (uint8_t) storagemanager::SYNC;
err = sockets.send_recv(*command, response);
if (err)
common_exit(command, response, err);
check_for_error(command, response, err);
common_exit(command, response, err);
}
int SMComm::copyFile(const string &file1, const string &file2)
{
ByteStream *command = buffers.getByteStream();