Review fixes

This commit is contained in:
jpirnay
2026-04-15 10:40:19 +02:00
parent 920b3c0b32
commit b0843fbbb2
5 changed files with 20 additions and 11 deletions
+5 -1
View File
@@ -176,7 +176,11 @@ bool GlobalBookmarkIndex::reconcile() {
entries.erase(std::remove_if(entries.begin(), entries.end(),
[](const Entry& e) {
if (!Storage.exists(e.sourcePath.c_str())) {
LOG_DBG("GBI", "Dropping orphan entry: %s", e.sourcePath.c_str());
LOG_DBG("GBI", "Dropping orphan entry: missing sourcePath=%s", e.sourcePath.c_str());
return true;
}
if (!Storage.exists(e.cacheDir.c_str())) {
LOG_DBG("GBI", "Dropping orphan entry: missing cacheDir=%s", e.cacheDir.c_str());
return true;
}
return false;