Skip to content

Commit 10afe90

Browse files
author
Anthony Yeh
committed
examples/local: Fix vttablet-up.sh for empty $tablet_hostname.
1 parent cbdd822 commit 10afe90

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/local/vttablet-up.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ grpc_port_base=16100
1414
mysql_port_base=33100
1515
tablet_hostname=''
1616

17+
# Travis hostnames are too long for MySQL, so we use IP.
18+
# Otherwise, blank hostname means the tablet auto-detects FQDN.
1719
if [ "$TRAVIS" == true ]; then
1820
tablet_hostname=`hostname -i`
1921
fi
@@ -86,7 +88,7 @@ for uid_index in $uids; do
8688
$VTROOT/bin/vttablet \
8789
-log_dir $VTDATAROOT/tmp \
8890
-tablet-path $alias \
89-
-tablet_hostname $tablet_hostname \
91+
-tablet_hostname "$tablet_hostname" \
9092
-init_keyspace $keyspace \
9193
-init_shard $shard \
9294
-target_tablet_type $tablet_type \

0 commit comments

Comments
 (0)