From 934910abfbdb813104946b490d4b061411b278af Mon Sep 17 00:00:00 2001 From: Viktor Yershov Date: Sat, 30 Aug 2025 19:33:01 -0700 Subject: [PATCH] Always use "admin" target_db during handshake --- src/cmap/establish/handshake.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmap/establish/handshake.rs b/src/cmap/establish/handshake.rs index 56e21a2c3..7a16409af 100644 --- a/src/cmap/establish/handshake.rs +++ b/src/cmap/establish/handshake.rs @@ -415,10 +415,10 @@ impl Handshaker { credential: Option<&Credential>, ) -> Result<(Command, Option)> { let mut command = self.command.clone(); + command.target_db = "admin".to_string(); if let Some(cred) = credential { cred.append_needed_mechanism_negotiation(&mut command.body); - command.target_db = cred.resolved_source().to_string(); } let client_first = set_speculative_auth_info(&mut command.body, credential).await?;