Permalink
Browse files

[split] Make hostWeights optional, to at least -attempt- to work with…

… Gizzmo`s janky thrift client
  • Loading branch information...
1 parent f55e2b1 commit f60ac5f0ac5116ce91b6880b5dfd7cd89375de2a @stuhood stuhood committed Apr 13, 2012
View
@@ -3,6 +3,6 @@
project.organization=com.twitter
project.name=gizzard
sbt.version=0.7.4
-project.version=3.0.16-SNAPSHOT
+project.version=3.0.16-SNAPSHOT-stuhood
build.scala.versions=2.8.1
project.initialize=false
@@ -23,7 +23,7 @@ case class NameServerState(
val thriftForwardings = forwardings.map(_.toThrift)
val thriftLinks = links.map(_.toThrift)
val thriftShards = shards.map(_.toThrift)
- new ThriftNameServerState(thriftShards, thriftLinks, thriftForwardings, tableId, hostWeights)
+ new ThriftNameServerState(thriftShards, thriftLinks, thriftForwardings, tableId).setHostWeights(hostWeights)
}
}
@@ -43,7 +43,7 @@ struct NameServerState {
2: list<LinkInfo> links
3: list<Forwarding> forwardings
4: i32 table_id
- 5: list<HostWeightInfo> hostWeights
+ 5: optional list<HostWeightInfo> hostWeights = {}
}

0 comments on commit f60ac5f

Please sign in to comment.