mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 15:36:28 +00:00 
			
		
		
		
	fix add primary key on index creation
This commit is contained in:
		| @@ -486,6 +486,11 @@ impl IndexStore for HeedIndexStore { | |||||||
|  |  | ||||||
|         let index = spawn_blocking(move || -> Result<Index> { |         let index = spawn_blocking(move || -> Result<Index> { | ||||||
|             let index = open_index(&path, 4096 * 100_000)?; |             let index = open_index(&path, 4096 * 100_000)?; | ||||||
|  |             if let Some(primary_key) = primary_key { | ||||||
|  |                 let mut txn = index.write_txn()?; | ||||||
|  |                 index.put_primary_key(&mut txn, &primary_key)?; | ||||||
|  |                 txn.commit()?; | ||||||
|  |             } | ||||||
|             Ok(index) |             Ok(index) | ||||||
|         }) |         }) | ||||||
|         .await |         .await | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user