mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
support old sqlite before 3.7.7
quickfix: define the symbol for backwards compat or FIXME: better solution #ifdef SQLITE_IOERR_SHMMAP where needed...
This commit is contained in:
parent
0a8c394ee9
commit
09c3043c85
@ -345,6 +345,12 @@ bool SyncJournalDb::checkConnect()
|
||||
"PRIMARY KEY(phash)"
|
||||
");");
|
||||
|
||||
#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))
|
||||
#endif
|
||||
|
||||
if (!createQuery.exec()) {
|
||||
// In certain situations the io error can be avoided by switching
|
||||
// to the DELETE journal mode, see #5723
|
||||
|
||||
Loading…
Reference in New Issue
Block a user