Permalink
Browse files

Merge pull request #92 from ksauzz/fix-demo

change shard_id to valid format. gizzmo-0.15.1 expanded shard_id validation.
  • Loading branch information...
stuhood committed Apr 28, 2012
2 parents 6cbca0b + 1d70e2b commit 3e35184203117eee28f7c0c147057cdea8969e5c
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/scripts/setup-env.sh
View
@@ -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))

0 comments on commit 3e35184

Please sign in to comment.