Skip to content

Commit 3e8f2ab

Browse files
authored
Always use "admin" target_db during handshake (#1463)
1 parent 695a66a commit 3e8f2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmap/establish/handshake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ impl Handshaker {
416416
credential: Option<&Credential>,
417417
) -> Result<(Command, Option<ClientFirst>)> {
418418
let mut command = self.command.clone();
419+
command.target_db = "admin".to_string();
419420

420421
if let Some(cred) = credential {
421422
cred.append_needed_mechanism_negotiation(&mut command.body);
422-
command.target_db = cred.resolved_source().to_string();
423423
}
424424

425425
let client_first = set_speculative_auth_info(&mut command.body, credential).await?;

0 commit comments

Comments
 (0)