Skip to content

Commit

Permalink
Final style changes
Browse files Browse the repository at this point in the history
Minor variable naming/error style fixes.
  • Loading branch information
onderkalaci committed Jan 9, 2015
1 parent ed8f95c commit acef92f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pg_shard.c
Expand Up @@ -549,14 +549,13 @@ DistributedQueryShardList(Query *query)
/* error out if no shards exists for the table */
if (shardIntervalList == NIL)
{
char *relName = get_rel_name(distributedTableId);
char *relationName = get_rel_name(distributedTableId);

ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
errmsg("could not find any shards for query"),
errdetail("No shards exist for distributed table"
" \"%s\".", relName),
errhint("Run master_create_worker_shards to "
"create shards "
errdetail("No shards exist for distributed table \"%s\".",
relationName),
errhint("Run master_create_worker_shards to create shards "
"and try again.")));
}

Expand Down

0 comments on commit acef92f

Please sign in to comment.