@Override
    public boolean reset(final long nextLogIndex) {
        if (isOldStorageExist()) {
            if (!this.oldLogStorage.reset(nextLogIndex)) {
                return false;
            }
            shutdownOldLogStorage();
        }
        return this.newLogStorage.reset(nextLogIndex);
    }
HybridLogStorage is used to be compatible with new and old logStorage
@author hzh (642256541@qq.com)
jraft-extension/java-log-storage-impl/src/main/java/com/alipay/sofa/jraft/storage/HybridLogStorage.java