Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #92 from ksauzz/fix-demo
Browse files Browse the repository at this point in the history
change shard_id to valid format. gizzmo-0.15.1 expanded shard_id validation.
  • Loading branch information
Stu Hood committed Apr 28, 2012
2 parents 6cbca0b + 1d70e2b commit 3e35184
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/scripts/setup-env.sh
Expand Up @@ -60,12 +60,12 @@ echo "Creating shards..."
i=1
while [ $i -le 15 ]; do
/bin/echo -n "$i "
exec_sql "DROP TABLE IF EXISTS edges_development.forward_${i}_edges"
exec_sql "DROP TABLE IF EXISTS edges_development.forward_${i}_metadata"
exec_sql "DROP TABLE IF EXISTS edges_development.backward_${i}_edges"
exec_sql "DROP TABLE IF EXISTS edges_development.backward_${i}_metadata"
forward_shard=$($gizzmo create -s "INT UNSIGNED" -d "INT UNSIGNED" "com.twitter.flockdb.SqlShard" "localhost/forward_${i}")
backward_shard=$($gizzmo create -s "INT UNSIGNED" -d "INT UNSIGNED" "com.twitter.flockdb.SqlShard" "localhost/backward_${i}")
exec_sql "DROP TABLE IF EXISTS edges_development.forward_${i}_0000_edges"
exec_sql "DROP TABLE IF EXISTS edges_development.forward_${i}_0000_metadata"
exec_sql "DROP TABLE IF EXISTS edges_development.backward_${i}_0000_edges"
exec_sql "DROP TABLE IF EXISTS edges_development.backward_${i}_0000_metadata"
forward_shard=$($gizzmo create -s "INT UNSIGNED" -d "INT UNSIGNED" "com.twitter.flockdb.SqlShard" "localhost/forward_${i}_0000")
backward_shard=$($gizzmo create -s "INT UNSIGNED" -d "INT UNSIGNED" "com.twitter.flockdb.SqlShard" "localhost/backward_${i}_0000")
$gizzmo addforwarding -- $i 0 $forward_shard
$gizzmo addforwarding -- -$i 0 $backward_shard
i=$((i + 1))
Expand Down

0 comments on commit 3e35184

Please sign in to comment.