Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2017-08-24 18:07:22 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2017-09-18 12:46:09 +0300
commit0e97770c47e6000f6ef11251c81e48a9879d7760 (patch)
tree595e30ff5380399f39455b53cfcf43ac242f19b0 /src/gui/syncrunfilelog.cpp
parent3d7bd7583b45a7f3ba7394a4daa58793053b5558 (diff)
Remove SyncFileItem::log
This remove the remaining "other" fields of the sync log to save a bit of memory. other_etag and other_fileId don't give much information to the users and other_instruction will always be INST_NONE anyway. other_modtime and other_size are kept since they are sometimes used. They were renamed to have a bit more meaningful name. SyncEngine::checkPermissions will now fetch its information from the csync trees since they are now preserved until right after this point. Fixes #3213
Diffstat (limited to 'src/gui/syncrunfilelog.cpp')
-rw-r--r--src/gui/syncrunfilelog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp
index 79099cd66..51396cbb0 100644
--- a/src/gui/syncrunfilelog.cpp
+++ b/src/gui/syncrunfilelog.cpp
@@ -161,11 +161,11 @@ void SyncRunFileLog::logItem(const SyncFileItem &item)
_out << item._status << L;
_out << item._errorString << L;
_out << QString::number(item._httpErrorCode) << L;
- _out << QString::number(item.log._other_size) << L;
- _out << QString::number(item.log._other_modtime) << L;
- _out << item.log._other_etag << L;
- _out << item.log._other_fileId << L;
- _out << instructionToStr(item.log._other_instruction) << L;
+ _out << QString::number(item._previousSize) << L;
+ _out << QString::number(item._previousModtime) << L;
+ _out /* << other etag (removed) */ << L;
+ _out /* << other fileId (removed) */ << L;
+ _out /* << other instruction (removed) */ << L;
_out << endl;
}