store: expose metadata()/set_metadata()

Allow for storing metadata in the database, and consider the cache.
This commit is contained in:
Dirk-Jan C. Binnema
2022-02-13 15:22:09 +02:00
parent 3820118246
commit 3086238b33
3 changed files with 60 additions and 31 deletions

View File

@ -235,8 +235,7 @@ Indexer::Private::item_worker()
++progress_.updated;
break;
case WorkItem::Type::Dir:
store_.set_dirstamp(item.full_path, ::time(NULL),
true /*use-transaction*/);
store_.set_dirstamp(item.full_path, ::time(NULL));
break;
default:
g_warn_if_reached();