-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Background threads that create operation contexts and do work on behalf of tenants will need to set the tenantId on the opCtx they create. Create a new tenantId decoration on the opCtx, similar to dollarTenantDecoration, for use by by such threads. This decoration should only be able to be set when multitenancySupport is enabled, and neither dollarTenantDecoration nor securityTokenDecoration are set (see parseDollarTenantFromRequest for how we can check for multitenancySupport and the securityTokenDecoration) .
getActiveTenant should return the tenantId on this object if it exists.
- is depended on by
-
SERVER-62393 Apply CRUD ops using correct tenant namespace during oplog application
- Closed