private void flushSinglePageWithLogging(ISchemaPage page) throws IOException {
    if (logCounter.get() > SchemaFileConfig.SCHEMA_FILE_LOG_SIZE) {
      logWriter = logWriter.renew();
      logCounter.set(0);
    }

    logCounter.addAndGet(1);
    page.syncPageBuffer();
    logWriter.write(page);
    logWriter.prepare();
    page.flushPageToChannel(channel);
    logWriter.commit();
  }
Load bytes from log, deserialize and flush directly into channel, return current length
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/schemafile/pagemgr/PageIOChannel.java