Changeset View
Changeset View
Standalone View
Standalone View
src/file/filecontentindexerprovider.cpp
Show All 34 Lines | 33 | { | |||
---|---|---|---|---|---|
35 | return tr.fetchPhaseOneIds(size); | 35 | return tr.fetchPhaseOneIds(size); | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | uint FileContentIndexerProvider::size() | 38 | uint FileContentIndexerProvider::size() | ||
39 | { | 39 | { | ||
40 | Transaction tr(m_db, Transaction::ReadOnly); | 40 | Transaction tr(m_db, Transaction::ReadOnly); | ||
41 | return tr.phaseOneSize(); | 41 | return tr.phaseOneSize(); | ||
42 | } | 42 | } | ||
43 | | ||||
44 | void FileContentIndexerProvider::markFailed(quint64 id) | ||||
45 | { | ||||
46 | Transaction tr(m_db, Transaction::ReadWrite); | ||||
47 | if (!tr.hasFailed(id)) { | ||||
48 | tr.addFailed(id); | ||||
49 | } | ||||
50 | tr.removePhaseOne(id); | ||||
51 | tr.commit(); | ||||
52 | } |