Skip to content

Commit

Permalink
Fixed issue #1509
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Jun 6, 2013
1 parent cb420fd commit ad6f1d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ public String getMasterNode(final String iDatabaseName, final String iClusterNam
this,
"DISTRIBUTED found wrong configuration for database '%s': cannot find the 'master' field for the cluster '%s'. '$auto' will be used",
iDatabaseName, iClusterName);
masterNode = "$auto";
} else if (!masterNode.equalsIgnoreCase("$auto"))
return masterNode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Object call() throws Exception {
ODistributedThreadLocal.INSTANCE.distributedExecution = true;
try {

Object result = openDatabase().command(new OCommandSQL(text));
Object result = openDatabase().command(new OCommandSQL(text)).execute();

if (mode != EXECUTION_MODE.FIRE_AND_FORGET)
return result;
Expand Down

0 comments on commit ad6f1d8

Please sign in to comment.