Add thrift-2786.