[MONGOCRYPT-189] Should reappend $db when stripped from mongocryptd Created: 11/Oct/19  Updated: 15/Oct/19  Resolved: 15/Oct/19

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Per SERVER-40354, $db is always stripped from a command result mongocryptd. But libmongocrypt will return the original command (unmodified) if it determines no encryption is necessary because no schema was configured. For consistency, we should always strip $db. Then wrapping drivers can always append $db after auto encryption.



 Comments   
Comment by Jeffrey Yemin [ 15/Oct/19 ]

Drivers have generally already worked around this anomaly, so we've decided not to do this.

Generated at Thu Feb 08 09:08:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.