Skip to content

Commit

Permalink
ignite-sql-tests - replicated projection
Browse files Browse the repository at this point in the history
  • Loading branch information
S.Vladykin committed Mar 17, 2015
1 parent df3e4f7 commit cfcb9a4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,13 @@ else if (filter instanceof SpiQuery) {
* @return Local node cluster group.
*/
private ClusterGroup projection(boolean local) {
return local || ctx.isLocal() || ctx.isReplicated() ? ctx.kernalContext().grid().cluster().forLocal() : null;
if (local || ctx.isLocal() || isReplicatedDataNode())
return ctx.kernalContext().grid().cluster().forLocal();

if (ctx.isReplicated())
return ctx.kernalContext().grid().cluster().forDataNodes(ctx.name()).forRandom();

return null;
}

/**
Expand Down

0 comments on commit cfcb9a4

Please sign in to comment.