Skip to content

Commit

Permalink
验证配置文件的正确性,分表总数不能为0。
Browse files Browse the repository at this point in the history
  • Loading branch information
flike committed Sep 26, 2014
1 parent b8d1981 commit 7643e28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chassis-shard.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ int get_shard_backend(network_backends_t *bs, shard_rule *sr) {
}
g_strfreev(node);
}
g_assert(sr->table_sum);
return 0;
}

Expand Down

0 comments on commit 7643e28

Please sign in to comment.