SERVER-137257Open

Avoid copying oplog/phylog through encryption

The oplog and phylog payloads are copied several times between the WiredTiger record and the log service. Five of these copies are unnecessary. On the primary, three: # Prepending the 2-byte compression header. The uncompressed path allocates a buffer of header + payload and copies both into it, so the encryptor is handed one contiguous plaintext. # The ciphertext out of the encryptor. The encryptor returns the ciphertext in a std::vector, and the caller copies it into a local before use.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
neweng