Changeset View
Changeset View
Standalone View
Standalone View
src/engine/writetransaction.cpp
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Line(s) | 206 | else | |||
---|---|---|---|---|---|
207 | documentFileNameTermsDB.del(id); | 207 | documentFileNameTermsDB.del(id); | ||
208 | } | 208 | } | ||
209 | 209 | | |||
210 | if (doc.contentIndexing()) { | 210 | if (doc.contentIndexing()) { | ||
211 | contentIndexingDB.put(doc.id()); | 211 | contentIndexingDB.put(doc.id()); | ||
212 | } | 212 | } | ||
213 | 213 | | |||
214 | if (operations & DocumentTime) { | 214 | if (operations & DocumentTime) { | ||
215 | DocumentTimeDB::TimeInfo info; | 215 | DocumentTimeDB::TimeInfo info = docTimeDB.get(id); | ||
216 | if (info.mTime != doc.m_mTime) { | ||||
217 | mtimeDB.del(info.mTime, id); | ||||
218 | mtimeDB.put(doc.m_mTime, id); | ||||
219 | } | ||||
220 | | ||||
216 | info.mTime = doc.m_mTime; | 221 | info.mTime = doc.m_mTime; | ||
217 | info.cTime = doc.m_cTime; | 222 | info.cTime = doc.m_cTime; | ||
218 | | ||||
219 | docTimeDB.put(id, info); | 223 | docTimeDB.put(id, info); | ||
220 | mtimeDB.put(doc.m_mTime, id); | | |||
221 | } | 224 | } | ||
222 | 225 | | |||
223 | if (operations & DocumentData) { | 226 | if (operations & DocumentData) { | ||
224 | if (!doc.m_data.isEmpty()) { | 227 | if (!doc.m_data.isEmpty()) { | ||
225 | docDataDB.put(id, doc.m_data); | 228 | docDataDB.put(id, doc.m_data); | ||
226 | } else { | 229 | } else { | ||
227 | docDataDB.del(id); | 230 | docDataDB.del(id); | ||
228 | } | 231 | } | ||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |