* mu-store.cc: some optimizations, and add the possibility to use the slightly

faster 'add_document' instead of 'replace_document' (it's not used yet though)
This commit is contained in:
Dirk-Jan C. Binnema
2011-04-30 11:31:34 +03:00
parent fda03bd562
commit efa026648b
4 changed files with 40 additions and 21 deletions

View File

@ -149,7 +149,7 @@ insert_or_update_maybe (const char* fullpath, const char* mdir,
}
/* we got a valid id; scan the message contents as well */
if (G_UNLIKELY((mu_store_store (data->_store, msg) != MU_OK))) {
if (G_UNLIKELY((mu_store_store (data->_store, msg, TRUE) != MU_OK))) {
g_warning ("%s: storing content %s failed", __FUNCTION__,
fullpath);
return MU_ERROR;