Skip to content

Commit

Permalink
bugfix: store.mode get configuration Inconsistent (apache#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjinlei authored and slievrly committed Aug 8, 2019
1 parent a28dc4e commit e66faf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/main/java/io/seata/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import io.seata.common.XID;
import io.seata.common.thread.NamedThreadFactory;
import io.seata.common.util.NetUtil;
import io.seata.core.constants.ConfigurationKeys;
import io.seata.core.rpc.netty.RpcServer;
import io.seata.core.rpc.netty.ShutdownHook;
import io.seata.server.coordinator.DefaultCoordinator;
Expand Down Expand Up @@ -58,6 +59,8 @@ public static void main(String[] args) throws IOException {
//initialize the parameter parser
ParameterParser parameterParser = new ParameterParser(args);

System.setProperty(ConfigurationKeys.STORE_MODE, parameterParser.getStoreMode());

RpcServer rpcServer = new RpcServer(WORKING_THREADS);
//server host
rpcServer.setHost(parameterParser.getHost());
Expand Down

0 comments on commit e66faf9

Please sign in to comment.