|
Today, in the logWriteConflictAndBackoff, it recreates a NamespaceString object from the input parameter "StringData ns". It's not reasonable for some reasons:
- the "ns" is already a string for logging. Recreating a NamespaceString object from it is wasting the cpu/memory.
- the call patch of it can pass in not only a ns string but also a UUID string (eg, here). It's not reasonable to create a NamespaceString object from a UUID string.
- the 'NamespaceString(ns)' function will be removed by
SERVER-65920.
In this ticket, we'll log the ns directly, for example,
|