mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
remove internal logs in propagation scheduler: not usefull
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
a2b088759e
commit
8ecf0e9faa
1 changed files with 0 additions and 8 deletions
|
@ -1579,8 +1579,6 @@ void PropagateRootDirectory::appendDirDeletionJob(PropagatorJob *job)
|
||||||
|
|
||||||
bool PropagateRootDirectory::scheduleSelfOrChild()
|
bool PropagateRootDirectory::scheduleSelfOrChild()
|
||||||
{
|
{
|
||||||
qCInfo(lcRootDirectory()) << "scheduleSelfOrChild" << _state << "pending uploads" << propagator()->delayedTasks().size() << "subjobs state" << _subJobs._state;
|
|
||||||
|
|
||||||
if (_state == Finished) {
|
if (_state == Finished) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1603,8 +1601,6 @@ bool PropagateRootDirectory::scheduleSelfOrChild()
|
||||||
|
|
||||||
void PropagateRootDirectory::slotSubJobsFinished(SyncFileItem::Status status)
|
void PropagateRootDirectory::slotSubJobsFinished(SyncFileItem::Status status)
|
||||||
{
|
{
|
||||||
qCInfo(lcRootDirectory()) << status << "slotSubJobsFinished" << _state << "pending uploads" << propagator()->delayedTasks().size() << "subjobs state" << _subJobs._state;
|
|
||||||
|
|
||||||
if (!propagator()->delayedTasks().empty()) {
|
if (!propagator()->delayedTasks().empty()) {
|
||||||
scheduleDelayedJobs();
|
scheduleDelayedJobs();
|
||||||
return;
|
return;
|
||||||
|
@ -1619,7 +1615,6 @@ void PropagateRootDirectory::slotSubJobsFinished(SyncFileItem::Status status)
|
||||||
// Synchronously abort
|
// Synchronously abort
|
||||||
abort(AbortType::Synchronous);
|
abort(AbortType::Synchronous);
|
||||||
_state = Finished;
|
_state = Finished;
|
||||||
qCInfo(lcPropagator) << "PropagateRootDirectory::slotSubJobsFinished" << "emit finished" << status;
|
|
||||||
emit finished(status);
|
emit finished(status);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -1653,18 +1648,15 @@ void PropagateRootDirectory::slotSubJobsFinished(SyncFileItem::Status status)
|
||||||
void PropagateRootDirectory::slotDirDeletionJobsFinished(SyncFileItem::Status status)
|
void PropagateRootDirectory::slotDirDeletionJobsFinished(SyncFileItem::Status status)
|
||||||
{
|
{
|
||||||
if (_errorStatus != SyncFileItem::NoStatus && status == SyncFileItem::Success) {
|
if (_errorStatus != SyncFileItem::NoStatus && status == SyncFileItem::Success) {
|
||||||
qCInfo(lcPropagator) << "PropagateRootDirectory::slotDirDeletionJobsFinished" << "reporting previous error" << _errorStatus;
|
|
||||||
status = _errorStatus;
|
status = _errorStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
_state = Finished;
|
_state = Finished;
|
||||||
qCInfo(lcPropagator) << "PropagateRootDirectory::slotDirDeletionJobsFinished" << "emit finished" << status;
|
|
||||||
emit finished(status);
|
emit finished(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PropagateRootDirectory::scheduleDelayedJobs()
|
bool PropagateRootDirectory::scheduleDelayedJobs()
|
||||||
{
|
{
|
||||||
qCInfo(lcPropagator) << "PropagateRootDirectory::scheduleDelayedJobs";
|
|
||||||
propagator()->setScheduleDelayedTasks(true);
|
propagator()->setScheduleDelayedTasks(true);
|
||||||
auto bulkPropagatorJob = std::make_unique<BulkPropagatorJob>(propagator(), propagator()->delayedTasks());
|
auto bulkPropagatorJob = std::make_unique<BulkPropagatorJob>(propagator(), propagator()->delayedTasks());
|
||||||
propagator()->clearDelayedTasks();
|
propagator()->clearDelayedTasks();
|
||||||
|
|
Loading…
Reference in a new issue