From 4171fb84a46afc4a504a436cff126e52dfbbcf4b Mon Sep 17 00:00:00 2001 From: iaom Date: Mon, 29 Apr 2024 11:27:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(file-index):=E6=96=87=E4=BB=B6moveTo?= =?UTF-8?q?=E6=97=B6=E6=9B=B4=E6=96=B0=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/index/index-updater.cpp | 3 ++- libsearch/index/pending-file.cpp | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libsearch/index/index-updater.cpp b/libsearch/index/index-updater.cpp index 8adbca9..2aca5f4 100644 --- a/libsearch/index/index-updater.cpp +++ b/libsearch/index/index-updater.cpp @@ -245,7 +245,8 @@ void IndexUpdater::updateAiIndex() qDebug() << "| remove:" <aiIndexFileTarget()[suffix] && !file.isDir()) { update(&AiIndexer::addTextFileIndex); diff --git a/libsearch/index/pending-file.cpp b/libsearch/index/pending-file.cpp index b51dd7d..8529e96 100644 --- a/libsearch/index/pending-file.cpp +++ b/libsearch/index/pending-file.cpp @@ -72,9 +72,10 @@ bool PendingFile::shouldRemoveIndex() const void PendingFile::merge(const PendingFile& file) { -// m_created |= file.m_created; - m_modified = file.m_modified; + m_created |= file.m_created; + m_modified |= file.m_modified; m_deleted = file.m_deleted; + m_moveTo |= file.m_moveTo; } void PendingFile::printFlags() const