public static TSOState getState(TSOServerConfig config) {
TSOState returnValue;
if (!config.isRecoveryEnabled()) {
LOG.warn("Logger is disabled");
returnValue = new TSOState(new TimestampOracle());
returnValue.initialize();
} else { //加-ha参数时config.isRecoveryEnabled为true,这样会把事务日志记到bookkeeper
BookKeeperStateBuilder builder = new BookKeeperStateBuilder(config);
try {