-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Server Programmability
We seem to be using this idiom in a growing number of places in the query codebase:
const auto isInternalClient = !opCtx->getClient()->session() || (opCtx->getClient()->session()->getTags() & transport::Session::kInternalClient);
It would be nice to have a helper Client::isInternal().
—
In addition to introducing the helper function, existing code that explicitly checks the `kInternalClient` flag should use the new helper function when possible.
- is related to
-
SERVER-71099 Remove Session Tags and Cleanup Egress Tag Closer
- Closed