mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
rename user-id to instance-uid
This commit is contained in:
parent
6b34318274
commit
76a4f86e0c
3 changed files with 14 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
|||
use std::{fs, path::Path};
|
||||
|
||||
/// Copy the `user-id` contained in one db to another. Ignore all errors.
|
||||
/// Copy the `instance-uid` contained in one db to another. Ignore all errors.
|
||||
pub fn copy_user_id(src: &Path, dst: &Path) {
|
||||
if let Ok(user_id) = fs::read_to_string(src.join("user-id")) {
|
||||
let _ = fs::write(dst.join("user-id"), &user_id);
|
||||
if let Ok(user_id) = fs::read_to_string(src.join("instance-uid")) {
|
||||
let _ = fs::write(dst.join("instance-uid"), &user_id);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -169,7 +169,7 @@ impl IndexControllerBuilder {
|
|||
let dump_path = self
|
||||
.dump_dst
|
||||
.ok_or_else(|| anyhow::anyhow!("Missing dump directory path"))?;
|
||||
let analytics_path = db_path.as_ref().join("user-id");
|
||||
let analytics_path = db_path.as_ref().join("instance-uid");
|
||||
let dump_handle = dump_actor::DumpActorHandleImpl::new(
|
||||
dump_path,
|
||||
analytics_path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue