[Pkg-owncloud-commits] [owncloud-client] 213/218: Propagator: Reset upload blacklist if a chunk suceeds

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 17 14:31:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 0d5f2b5d31779abdfb454dcab1aca48964ae07b1
Author: Markus Goetz <markus at woboq.com>
Date:   Fri Oct 16 10:05:27 2015 +0200

    Propagator: Reset upload blacklist if a chunk suceeds
    
    For #3934
---
 src/libsync/propagateupload.cpp | 1 +
 src/libsync/syncjournaldb.cpp   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/libsync/propagateupload.cpp b/src/libsync/propagateupload.cpp
index e90fee6..6d3d299 100644
--- a/src/libsync/propagateupload.cpp
+++ b/src/libsync/propagateupload.cpp
@@ -657,6 +657,7 @@ void PropagateUploadFileQNAM::slotPutFinished()
         pi._chunk = (currentChunk + _startChunk + 1) % _chunkCount ; // next chunk to start with
         pi._transferid = _transferId;
         pi._modtime =  Utility::qDateTimeFromTime_t(_item->_modtime);
+        _propagator->_journal->wipeErrorBlacklistEntry(_item->_file);
         _propagator->_journal->setUploadInfo(_item->_file, pi);
         _propagator->_journal->commit("Upload info");
         startNextChunk();
diff --git a/src/libsync/syncjournaldb.cpp b/src/libsync/syncjournaldb.cpp
index 35fa4d6..066598f 100644
--- a/src/libsync/syncjournaldb.cpp
+++ b/src/libsync/syncjournaldb.cpp
@@ -1179,6 +1179,7 @@ void SyncJournalDb::wipeErrorBlacklistEntry( const QString& file )
         if( ! query.exec() ) {
             sqlFail("Deletion of blacklist item failed.", query);
         }
+        qDebug() <<  query.lastQuery() << file;
     }
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list