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