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: cleanup debug logging and comments from copy/paste.
This commit is contained in:
@ -322,11 +322,10 @@ void Synchronizer::syncNow()
|
|||||||
{
|
{
|
||||||
boost::unique_lock<boost::mutex> lock(mutex);
|
boost::unique_lock<boost::mutex> lock(mutex);
|
||||||
|
|
||||||
// this is pretty hacky. when time permits, implement something better.
|
// This should ensure that all pendingOps have been added as jobs
|
||||||
//
|
// and waits for them to complete. until pendingOps is empty.
|
||||||
// Issue all of the pendingOps for the given prefix
|
// Used by the mcsadmin command suspendDatabaseWrites.
|
||||||
// recreate the threadpool (dtor returns once all jobs have finished)
|
// Leaving S3 storage and local metadata directories sync'd for snapshot backups.
|
||||||
// resume normal operation
|
|
||||||
|
|
||||||
blockNewJobs = true;
|
blockNewJobs = true;
|
||||||
while (pendingOps.size() != 0)
|
while (pendingOps.size() != 0)
|
||||||
@ -338,8 +337,6 @@ void Synchronizer::syncNow()
|
|||||||
lock.unlock();
|
lock.unlock();
|
||||||
while (opsInProgress.size() > 0)
|
while (opsInProgress.size() > 0)
|
||||||
boost::this_thread::sleep_for(boost::chrono::seconds(1));
|
boost::this_thread::sleep_for(boost::chrono::seconds(1));
|
||||||
if (pendingOps.size() != 0)
|
|
||||||
logger->log(LOG_DEBUG,"Synchronizer syncNow pendingOps not empty.");
|
|
||||||
lock.lock();
|
lock.lock();
|
||||||
}
|
}
|
||||||
blockNewJobs = false;
|
blockNewJobs = false;
|
||||||
|
Reference in New Issue
Block a user