[SERVER-45071] Add 'fromMongos' flag to find commands issued by mongos Created: 11/Dec/19  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Justin Seyster Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Comments   
Comment by Justin Seyster [ 12/Dec/19 ]

Good question! I haven't examined the code there to see if there might be stumbling blocks, but I'm pretty sure that would work.

My main reason for filing a ticket to do it this way (rather than using client info as you suggested) was to be compatible with how the aggregate command works. That said, it might make sense to change the aggregate command to also use the client info. To that end, we might be able to go so far as to version info, instead of relying on something like the "use44SortKeys" flag.

Comment by Eric Milkie [ 11/Dec/19 ]

Why can't we use the client info that's transmitted by all drivers? We could put something in that payload if it's not already there.

Generated at Thu Feb 08 05:07:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.