mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Apply suggestions from code review
Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
parent
6609f9e3be
commit
df6ba0e824
3 changed files with 3 additions and 11 deletions
|
@ -24,7 +24,7 @@ const DATA_FILE_NAME: &str = "documents.jsonl";
|
|||
|
||||
impl Index {
|
||||
pub fn dump(&self, path: impl AsRef<Path>) -> anyhow::Result<()> {
|
||||
// acquire write txn make sure any ongoing write is finnished before we start.
|
||||
// acquire write txn make sure any ongoing write is finished before we start.
|
||||
let txn = self.env.write_txn()?;
|
||||
|
||||
self.dump_documents(&txn, &path)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue