public void buildSyncLogChannel(Peer targetPeer, boolean startNow) {
    buildSyncLogChannel(targetPeer, getMinSyncIndex(), startNow);
  }
build SyncLog channel with safeIndex as the default initial sync index.
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensusServerImpl.java