Detect replica mode when writing commit data.