mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-31 23:41:42 +08:00
commit after creating an index
This commit is contained in:
parent
54d4d364c2
commit
748249578d
@ -525,7 +525,10 @@ impl IndexScheduler {
|
|||||||
/// Create a new index without any associated task.
|
/// Create a new index without any associated task.
|
||||||
pub fn create_raw_index(&self, name: &str) -> Result<Index> {
|
pub fn create_raw_index(&self, name: &str) -> Result<Index> {
|
||||||
let mut wtxn = self.env.write_txn()?;
|
let mut wtxn = self.env.write_txn()?;
|
||||||
self.index_mapper.create_index(&mut wtxn, name)
|
let index = self.index_mapper.create_index(&mut wtxn, name)?;
|
||||||
|
wtxn.commit()?;
|
||||||
|
|
||||||
|
Ok(index)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn create_update_file(&self) -> Result<(Uuid, file_store::File)> {
|
pub fn create_update_file(&self) -> Result<(Uuid, file_store::File)> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user