"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common/syncjournaldb.cpp" between
ownCloud-2.9.0.5150.tar.xz and ownCloud-2.9.1.5500.tar.xz

About: ownCloud Client (formerly "mirall") is a tool to synchronize files from ownCloud Server with your desktop client. It uses OCSync as its syncing backend.

syncjournaldb.cpp  (ownCloud-2.9.0.5150.tar.xz):syncjournaldb.cpp  (ownCloud-2.9.1.5500.tar.xz)
skipping to change at line 130 skipping to change at line 130
file.close(); file.close();
file.remove(); file.remove();
return journalPath; return journalPath;
} }
// Error during creation, just keep the original and throw errors later // Error during creation, just keep the original and throw errors later
qCWarning(lcDb) << "Could not find a writable database path" << file.fileNam e() << file.errorString(); qCWarning(lcDb) << "Could not find a writable database path" << file.fileNam e() << file.errorString();
return journalPath; return journalPath;
} }
QString SyncJournalDb::makeDbName(const QString &localPath, const QUrl &remoteUr
l, const QString &remotePath, const QString &user)
{
// legacy name only used by the cmd client
const QString key = QStringLiteral("%1@%2:%3").arg(user, remoteUrl.toString(
), remotePath);
return makeDbName(localPath, QString::fromUtf8(QCryptographicHash::hash(key.
toUtf8(), QCryptographicHash::Md5).left(6).toHex()));
}
bool SyncJournalDb::maybeMigrateDb(const QString &localPath, const QString &abso luteJournalPath) bool SyncJournalDb::maybeMigrateDb(const QString &localPath, const QString &abso luteJournalPath)
{ {
const QString oldDbName = localPath + QLatin1String(".csync_journal.db"); const QString oldDbName = localPath + QLatin1String(".csync_journal.db");
if (!FileSystem::fileExists(oldDbName)) { if (!FileSystem::fileExists(oldDbName)) {
return true; return true;
} }
const QString oldDbNameShm = oldDbName + QStringLiteral("-shm"); const QString oldDbNameShm = oldDbName + QStringLiteral("-shm");
const QString oldDbNameWal = oldDbName + QStringLiteral("-wal"); const QString oldDbNameWal = oldDbName + QStringLiteral("-wal");
const QString newDbName = absoluteJournalPath; const QString newDbName = absoluteJournalPath;
 End of changes. 1 change blocks. 
10 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)