[Pkg-owncloud-commits] [owncloud-client] 32/470: SyncJounral: add an index on the error blacklist table
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:24:41 UTC 2016
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 cd83772112ca17a99e99afc2973d3cf1a310b5ff
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Thu Feb 11 14:38:38 2016 +0100
SyncJounral: add an index on the error blacklist table
https://github.com/owncloud/enterprise/issues/1035
---
src/libsync/syncjournaldb.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/libsync/syncjournaldb.cpp b/src/libsync/syncjournaldb.cpp
index d492efa..e88bd40 100644
--- a/src/libsync/syncjournaldb.cpp
+++ b/src/libsync/syncjournaldb.cpp
@@ -613,6 +613,13 @@ bool SyncJournalDb::updateErrorBlacklistTableStructure()
commitInternal("update database structure: add lastTryTime, ignoreDuration cols");
}
+ SqlQuery query(_db);
+ query.prepare("CREATE INDEX IF NOT EXISTS blacklist_index ON blacklist(path collate nocase);");
+ if( !query.exec()) {
+ sqlFail("updateErrorBlacklistTableStructure: create index blacklit", query);
+ re = false;
+ }
+
return re;
}
--
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