-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spelling #9044
base: master
Are you sure you want to change the base?
Spelling #9044
Changes from all commits
0090b2f
08d1322
46f28aa
93e5cb9
aba16cf
d9c0dc6
fa21e8c
c6c9052
bde98a8
0c45839
58620af
9ddf7df
73263a5
fd184bf
348aab5
a4418af
28e22fb
b8cc07d
c8e5272
0761109
8855f43
b80c6d3
518930e
6b244bc
0e76c0a
14ad273
5effb75
834576a
72198bb
dac371c
e599b9d
752448b
d782125
08772ca
9c166d3
0bb71ad
ff80df5
f384484
ea9437f
c84c7e5
85d48be
7cdccaf
10fe178
16d7319
1770a6a
e280c55
5af8127
ad3ced1
bc1d535
3c3cdda
2bad073
2c61f28
7eb5958
cb7a8c0
5f49726
c4a888d
bafcf05
d598703
f48d0dd
d03d213
c8a765d
523ab7e
07838c7
213e981
89a6b99
170d99a
15ed00b
3bcb8ba
f7882ec
77ef05c
36c78e4
7f47cfa
72e1fa8
281dc94
19e22e5
c2295a6
1a6fd5b
9a52907
c2f10d4
20fd497
9c4a6f1
44f746e
9c539d3
fcba477
1e6458d
1c7edfb
54ae059
70ef55d
d577c1b
356ce8b
3d11d27
e9408ab
a005a33
9d669d5
97dfb83
de61ac2
43fe958
78f499c
a52bc3a
e564993
2304ff3
9eeab3c
74411b9
2187a19
5e1cf43
662a65d
280332b
61cd53c
f0eef39
cc57718
ed542f0
89615f3
6412ee8
547f0ae
ed4bfab
f1f1e0c
c4498f6
32d32d1
bae6090
dd58f49
30dc1b0
4615d6c
655bff2
0d786b2
f5296ef
9e0d32c
9fdc46e
50fcc57
592cb7c
6b4e2c1
2ce88b3
b58cccc
39c1945
014f69e
42d8f08
35cfb78
59b7cab
e5c959f
cc6fc0b
d73ae05
51fe990
88db0e6
6fb88e7
6d43b56
abd39ee
f817670
74cbfe9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Bugfix: Don't reset change time on upload | ||
|
||
We fixed a bug where we reset the change time of Windows placeholder files to the value in the database during uploads. | ||
This cold cause other applications to detect non existing changes in that file. | ||
This cold cause other applications to detect nonexistent changes in that file. | ||
|
||
https://github.com/owncloud/client/issues/9383 | ||
https://github.com/owncloud/client-desktop-vfs-win/pull/16 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Bugfix: Possible crash when removing non exisitng folder | ||
Bugfix: Possible crash when removing nonexistent folder | ||
|
||
|
||
https://github.com/owncloud/client/issues/9533 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# Dimensions taken from https://www.apriorit.com/dev-blog/357-shell-extentions-basics-samples-common-problems#_Toc408244375 | ||
# Dimensions taken from https://www.apriorit.com/dev-blog/357-shell-extensions-basics-samples-common-problems#_Toc408244375 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both urls work as does https://www.apriorit.com/dev-blog/357-foo |
||
convert -background transparent attention.svg -gravity SouthWest \( -clone 0 -resize 10x10 -extent 16x16 \) \( -clone 0 -resize 16x16 -extent 32x32 \) \( -clone 0 -resize 24x24 -extent 48x48 \) \( -clone 0 -resize 128x128 -extent 256x256 \) -delete 0 ../../../windows/OCOverlays/ico/Warning.ico | ||
convert -background transparent error.svg -gravity SouthWest \( -clone 0 -resize 10x10 -extent 16x16 \) \( -clone 0 -resize 16x16 -extent 32x32 \) \( -clone 0 -resize 24x24 -extent 48x48 \) \( -clone 0 -resize 128x128 -extent 256x256 \) -delete 0 ../../../windows/OCOverlays/ico/Error.ico | ||
convert -background transparent ok.svg -gravity SouthWest \( -clone 0 -resize 10x10 -extent 16x16 \) \( -clone 0 -resize 16x16 -extent 32x32 \) \( -clone 0 -resize 24x24 -extent 48x48 \) \( -clone 0 -resize 128x128 -extent 256x256 \) -delete 0 ../../../windows/OCOverlays/ico/OK.ico | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,8 +101,8 @@ IFACEMETHODIMP_(ULONG) OCOverlay::Release() | |
|
||
IFACEMETHODIMP OCOverlay::GetPriority(int *pPriority) | ||
{ | ||
// this defines which handler has prededence, so | ||
// we order this in terms of likelyhood | ||
// this defines which handler has precedence, so | ||
// we order this in terms of likelihood | ||
switch (_state) { | ||
case State_OK: | ||
*pPriority = 0; break; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The below file is being renamed from |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,14 @@ | |
*/ | ||
|
||
#include <QCryptographicHash> | ||
#include <QDir> | ||
#include <QElapsedTimer> | ||
#include <QFile> | ||
#include <QLoggingCategory> | ||
#include <QStringList> | ||
#include <QElapsedTimer> | ||
#include <QUrl> | ||
#include <QDir> | ||
#include <sqlite3.h> | ||
#include <cstring> | ||
#include <sqlite3.h> | ||
Comment on lines
+20
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This reordering is done in a distinct commit before my work because my work tripped on a linter. I think that I've included enough to prevent this from happening to the next hapless contributor, but I'd encourage someone to check. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @TheOneRing re #9044 (comment) this is: I'd encourage you to merge that commit outside of this PR, since it really doesn't belong, but the linter failed and it was way too messy for me to handle it any other way here. -- And the only way to show it mattered was to compose this PR. |
||
|
||
#include "common/asserts.h" | ||
#include "common/checksums.h" | ||
|
@@ -354,14 +354,16 @@ bool SyncJournalDb::checkConnect() | |
} | ||
} | ||
|
||
sqlite3_create_function(_db.sqliteDb(), "parent_hash", 1, SQLITE_UTF8 | SQLITE_DETERMINISTIC, nullptr, | ||
[] (sqlite3_context *ctx,int, sqlite3_value **argv) { | ||
auto text = reinterpret_cast<const char*>(sqlite3_value_text(argv[0])); | ||
const char *end = std::strrchr(text, '/'); | ||
if (!end) end = text; | ||
sqlite3_result_int64(ctx, c_jhash64(reinterpret_cast<const uint8_t*>(text), | ||
end - text, 0)); | ||
}, nullptr, nullptr); | ||
sqlite3_create_function( | ||
_db.sqliteDb(), "parent_hash", 1, SQLITE_UTF8 | SQLITE_DETERMINISTIC, nullptr, | ||
[](sqlite3_context *ctx, int, sqlite3_value **argv) { | ||
auto text = reinterpret_cast<const char *>(sqlite3_value_text(argv[0])); | ||
const char *end = std::strrchr(text, '/'); | ||
if (!end) | ||
end = text; | ||
sqlite3_result_int64(ctx, c_jhash64(reinterpret_cast<const uint8_t *>(text), end - text, 0)); | ||
}, | ||
nullptr, nullptr); | ||
|
||
/* Because insert is so slow, we do everything in a transaction, and only need one call to commit */ | ||
startTransaction(); | ||
|
@@ -391,7 +393,7 @@ bool SyncJournalDb::checkConnect() | |
#ifndef SQLITE_IOERR_SHMMAP | ||
// Requires sqlite >= 3.7.7 but old CentOS6 has sqlite-3.6.20 | ||
// Definition taken from https://sqlite.org/c3ref/c_abort_rollback.html | ||
#define SQLITE_IOERR_SHMMAP (SQLITE_IOERR | (21<<8)) | ||
#define SQLITE_IOERR_SHMMAP (SQLITE_IOERR | (21 << 8)) | ||
#endif | ||
|
||
if (!createQuery.exec()) { | ||
|
@@ -824,7 +826,7 @@ bool SyncJournalDb::updateErrorBlacklistTableStructure() | |
SqlQuery query(_db); | ||
query.prepare("CREATE INDEX IF NOT EXISTS blacklist_index ON blacklist(path collate nocase);"); | ||
if (!query.exec()) { | ||
sqlFail(QStringLiteral("updateErrorBlacklistTableStructure: create index blacklit"), query); | ||
sqlFail(QStringLiteral("updateErrorBlacklistTableStructure: create index blacklist"), query); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: I'm only running a spell checker. Modern practices discourage the use of this term entirely, and that's far beyond the scope of this PR. (If you adopt a spell checker, you could add this word to a |
||
re = false; | ||
} | ||
|
||
|
@@ -1081,7 +1083,7 @@ bool SyncJournalDb::getFileRecordsByFileId(const QByteArray &fileId, const std:: | |
return true; | ||
} | ||
|
||
bool SyncJournalDb::getFilesBelowPath(const QByteArray &path, const std::function<void(const SyncJournalFileRecord&)> &rowCallback) | ||
bool SyncJournalDb::getFilesBelowPath(const QByteArray &path, const std::function<void(const SyncJournalFileRecord &)> &rowCallback) | ||
{ | ||
QMutexLocker locker(&_mutex); | ||
|
||
|
@@ -1110,7 +1112,7 @@ bool SyncJournalDb::getFilesBelowPath(const QByteArray &path, const std::functio | |
return true; | ||
}; | ||
|
||
if(path.isEmpty()) { | ||
if (path.isEmpty()) { | ||
// Since the path column doesn't store the starting /, the getFilesBelowPathQuery | ||
// can't be used for the root path "". It would scan for (path > '/' and path < '0') | ||
// and find nothing. So, unfortunately, we have to use a different query for | ||
|
@@ -1140,8 +1142,8 @@ bool SyncJournalDb::getFilesBelowPath(const QByteArray &path, const std::functio | |
} | ||
} | ||
|
||
bool SyncJournalDb::listFilesInPath(const QByteArray& path, | ||
const std::function<void (const SyncJournalFileRecord &)>& rowCallback) | ||
bool SyncJournalDb::listFilesInPath(const QByteArray &path, | ||
const std::function<void(const SyncJournalFileRecord &)> &rowCallback) | ||
{ | ||
QMutexLocker locker(&_mutex); | ||
|
||
|
@@ -1864,8 +1866,8 @@ int SyncJournalDb::mapChecksumType(const QByteArray &checksumType) | |
return 0; | ||
} | ||
|
||
auto it = _checksymTypeCache.find(checksumType); | ||
if (it != _checksymTypeCache.end()) | ||
auto it = _checksumTypeCache.find(checksumType); | ||
if (it != _checksumTypeCache.end()) | ||
return *it; | ||
|
||
// Ensure the checksum type is in the db | ||
|
@@ -1896,7 +1898,7 @@ int SyncJournalDb::mapChecksumType(const QByteArray &checksumType) | |
return 0; | ||
} | ||
auto value = query->intValue(0); | ||
_checksymTypeCache[checksumType] = value; | ||
_checksumTypeCache[checksumType] = value; | ||
return value; | ||
} | ||
} | ||
|
@@ -2046,7 +2048,8 @@ void SyncJournalDb::markVirtualFileForDownloadRecursively(const QByteArray &path | |
static_assert(ItemTypeVirtualFile == 4 && ItemTypeVirtualFileDownload == 5, ""); | ||
SqlQuery query("UPDATE metadata SET type=5 WHERE " | ||
"(" IS_PREFIX_PATH_OF("?1", "path") " OR ?1 == '') " | ||
"AND type=4;", _db); | ||
"AND type=4;", | ||
_db); | ||
query.bindValue(1, path); | ||
query.exec(); | ||
|
||
|
@@ -2202,7 +2205,7 @@ SyncJournalDb::PinStateInterface::rawList() | |
|
||
SyncJournalDb::PinStateInterface SyncJournalDb::internalPinStates() | ||
{ | ||
return {this}; | ||
return { this }; | ||
} | ||
|
||
void SyncJournalDb::commit(const QString &context, bool startTrans) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,11 +209,11 @@ class OCSYNC_EXPORT SyncJournalDb : public QObject | |
* This usually creates some temporary files next to the db file, like | ||
* $dbfile-shm or $dbfile-wal. | ||
* | ||
* returns true if it could be openend or is currently opened. | ||
* returns true if it could be opened or is currently opened. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a purely spell-checking oriented PR. Grammatically, I'd probably write |
||
*/ | ||
bool open(); | ||
|
||
/** Returns whether the db is currently openend. */ | ||
/** Returns whether the db is currently opened. */ | ||
bool isOpen(); | ||
|
||
/** Close the database */ | ||
|
@@ -386,7 +386,7 @@ class OCSYNC_EXPORT SyncJournalDb : public QObject | |
SqlDatabase _db; | ||
QString _dbFile; | ||
QMutex _mutex; // Public functions are protected with the mutex. | ||
QMap<QByteArray, int> _checksymTypeCache; | ||
QMap<QByteArray, int> _checksumTypeCache; | ||
int _transaction; | ||
bool _metadataTableIsEmpty; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the output match the filename...