Skip to content

Commit

Permalink
[BUG FIX] Fix indexer failing to remove files that are no longer there
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiepine committed Jan 4, 2025
1 parent ac0b391 commit 0d2a751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/crates/heavy-lifting/src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ impl walker::WalkerDBProxy for WalkerDBProxy {
.file_path()
.find_many(vec![
file_path::location_id::equals(Some(self.location_id)),
file_path::id::gte(cursor),
if existing_inodes.is_empty() {
materialized_path_param
} else {
Expand All @@ -529,7 +530,6 @@ impl walker::WalkerDBProxy for WalkerDBProxy {
])
.order_by(file_path::id::order(SortOrder::Asc))
.take(BATCH_SIZE)
.cursor(file_path::id::equals(cursor))
.select(file_path::select!({ id pub_id cas_id inode }))
.exec()
.await
Expand Down

0 comments on commit 0d2a751

Please sign in to comment.