[Pkg-owncloud-commits] [owncloud-client] 69/175: Propagator: Added a log that tells if transmission checksumming is used.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:28 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 dd6c97abb61ff1311d69a7872ebbe88aee3eee4c
Author: Klaas Freitag <freitag at owncloud.com>
Date: Wed May 20 12:27:54 2015 +0200
Propagator: Added a log that tells if transmission checksumming is used.
---
src/libsync/owncloudpropagator.cpp | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp
index 1ccefaf..c782688 100644
--- a/src/libsync/owncloudpropagator.cpp
+++ b/src/libsync/owncloudpropagator.cpp
@@ -259,6 +259,21 @@ void OwncloudPropagator::start(const SyncFileItemVector& items)
{
Q_ASSERT(std::is_sorted(items.begin(), items.end()));
+ /* Check and log the transmission checksum type */
+ ConfigFile cfg;
+ const QString checksumType = cfg.transmissionChecksum().toUpper();
+
+ /* if the checksum type is empty, it is not send. No error */
+ if( !checksumType.isEmpty() ) {
+ if( checksumType == checkSumAdlerUpperC ||
+ checksumType == checkSumMD5C ||
+ checksumType == checkSumSHA1C ) {
+ qDebug() << "Client sends and expects transmission checksum type" << checksumType;
+ } else {
+ qDebug() << "WARN: Unknown transmission checksum type from config" << checksumType;
+ }
+ }
+
/* This builds all the job needed for the propagation.
* Each directories is a PropagateDirectory job, which contains the files in it.
* In order to do that we loop over the items. (which are sorted by destination)
--
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