Currently applyOperation_inlock() accepts 2 input parameters bool isDataConsistent and OplogApplication::Mode mode .
isDataConsistent value is determined based on repl consistency marker minvalid. And, used to determine if we need to record pre/postimage for change collection and retryable writes.
I am wondering if we can combine the essence of those 2 parameters into a single parameter to improve code clarity.
Just to be noted, FCBIS apply oplog entries with mode kRecovering. This means, only logical initial uses kInitialSync mode who data is always inconsistent in initial syncing mode. And, any change we do as part of ticket should ensure that we don't break backup and restore code (See here for historical related discussion)