From e0d7142d5fe81521ed38e5df8211d465cf93e705 Mon Sep 17 00:00:00 2001 From: Gabriel Gordon-Hall Date: Fri, 22 Dec 2023 11:05:20 +0000 Subject: [PATCH] Do not reduce soft if greater than 10,000 (#1193) --- apps/desktop/src-tauri/src/qdrant.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src-tauri/src/qdrant.rs b/apps/desktop/src-tauri/src/qdrant.rs index 5bef1469b5..16fe070762 100644 --- a/apps/desktop/src-tauri/src/qdrant.rs +++ b/apps/desktop/src-tauri/src/qdrant.rs @@ -135,8 +135,8 @@ fn run_command(command: &Path, qdrant_dir: &Path, stdout: &Path, stderr: &Path) match getrlimit(Resource::RLIMIT_NOFILE) { Ok((current_soft, current_hard)) => { - let new_soft = current_hard.min(10000); info!(current_soft, current_hard, "got rlimit/nofile"); + let new_soft = current_soft.max(current_hard.min(10000)); if let Err(err) = setrlimit(Resource::RLIMIT_NOFILE, new_soft, current_hard) { error!( ?err,