@Override
    protected WriteContext newWriteContext() {
        return new BarrierWriteContext();
    }
Retrieve the log wrote position from metadata.

@param data the metadata
@return the log wrote position
jraft-core/src/main/java/com/alipay/sofa/jraft/storage/log/RocksDBSegmentLogStorage.java