Skip to content

Commit

Permalink
fts-squat: Use file_cache_new_path() for squat indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Dec 15, 2016
1 parent e430554 commit e847976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/fts-squat/squat-trie.c
Expand Up @@ -1492,7 +1492,7 @@ static int squat_trie_map(struct squat_trie *trie, bool building)
return -1;
if ((trie->flags & SQUAT_INDEX_FLAG_MMAP_DISABLE) != 0 &&
trie->file_cache == NULL)
trie->file_cache = file_cache_new(trie->fd);
trie->file_cache = file_cache_new_path(trie->fd, trie->path);
}

ret = squat_trie_map_header(trie);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/fts-squat/squat-uidlist.c
Expand Up @@ -472,7 +472,7 @@ static int squat_uidlist_map(struct squat_uidlist *uidlist)
}
if (uidlist->file_cache == NULL &&
(uidlist->trie->flags & SQUAT_INDEX_FLAG_MMAP_DISABLE) != 0)
uidlist->file_cache = file_cache_new(uidlist->fd);
uidlist->file_cache = file_cache_new_path(uidlist->fd, uidlist->path);
return squat_uidlist_map_header(uidlist);
}

Expand Down

0 comments on commit e847976

Please sign in to comment.