diff --git a/mcrouter/lib/carbon/example/gen/HelloGoodbyeThriftTransport.h b/mcrouter/lib/carbon/example/gen/HelloGoodbyeThriftTransport.h index 30cf7754d..733b8b859 100644 --- a/mcrouter/lib/carbon/example/gen/HelloGoodbyeThriftTransport.h +++ b/mcrouter/lib/carbon/example/gen/HelloGoodbyeThriftTransport.h @@ -257,7 +257,7 @@ class ThriftTransport : public ThriftTrans apache::thrift::Client* getThriftClient() { if (FOLLY_UNLIKELY(!thriftClient_)) { thriftClient_ = createThriftClient>(); - if (flushList_) { + if (thriftClient_.has_value() && flushList_) { auto* channel = static_cast( thriftClient_->getChannel()); channel->setFlushList(flushList_); diff --git a/mcrouter/lib/carbon/test/gen/AThriftTransport.h b/mcrouter/lib/carbon/test/gen/AThriftTransport.h index 5b6c390e0..b9bc1660d 100644 --- a/mcrouter/lib/carbon/test/gen/AThriftTransport.h +++ b/mcrouter/lib/carbon/test/gen/AThriftTransport.h @@ -176,7 +176,7 @@ class ThriftTransport : public ThriftTransportMeth apache::thrift::Client* getThriftClient() { if (FOLLY_UNLIKELY(!thriftClient_)) { thriftClient_ = createThriftClient>(); - if (flushList_) { + if (thriftClient_.has_value() && flushList_) { auto* channel = static_cast( thriftClient_->getChannel()); channel->setFlushList(flushList_); diff --git a/mcrouter/lib/carbon/test/gen/BThriftTransport.h b/mcrouter/lib/carbon/test/gen/BThriftTransport.h index 228a9e1d4..386c0f3b0 100644 --- a/mcrouter/lib/carbon/test/gen/BThriftTransport.h +++ b/mcrouter/lib/carbon/test/gen/BThriftTransport.h @@ -176,7 +176,7 @@ class ThriftTransport : public ThriftTransportMeth apache::thrift::Client* getThriftClient() { if (FOLLY_UNLIKELY(!thriftClient_)) { thriftClient_ = createThriftClient>(); - if (flushList_) { + if (thriftClient_.has_value() && flushList_) { auto* channel = static_cast( thriftClient_->getChannel()); channel->setFlushList(flushList_); diff --git a/mcrouter/lib/carbon/test/gen/CarbonTestThriftTransport.h b/mcrouter/lib/carbon/test/gen/CarbonTestThriftTransport.h index 722476571..30e3b8f5d 100644 --- a/mcrouter/lib/carbon/test/gen/CarbonTestThriftTransport.h +++ b/mcrouter/lib/carbon/test/gen/CarbonTestThriftTransport.h @@ -231,7 +231,7 @@ class ThriftTransport : public ThriftTranspo apache::thrift::Client* getThriftClient() { if (FOLLY_UNLIKELY(!thriftClient_)) { thriftClient_ = createThriftClient>(); - if (flushList_) { + if (thriftClient_.has_value() && flushList_) { auto* channel = static_cast( thriftClient_->getChannel()); channel->setFlushList(flushList_); diff --git a/mcrouter/lib/carbon/test/gen/CarbonThriftTestThriftTransport.h b/mcrouter/lib/carbon/test/gen/CarbonThriftTestThriftTransport.h index c1b641093..a1126d870 100644 --- a/mcrouter/lib/carbon/test/gen/CarbonThriftTestThriftTransport.h +++ b/mcrouter/lib/carbon/test/gen/CarbonThriftTestThriftTransport.h @@ -286,7 +286,7 @@ class ThriftTransport : public ThriftT apache::thrift::Client* getThriftClient() { if (FOLLY_UNLIKELY(!thriftClient_)) { thriftClient_ = createThriftClient>(); - if (flushList_) { + if (thriftClient_.has_value() && flushList_) { auto* channel = static_cast( thriftClient_->getChannel()); channel->setFlushList(flushList_); diff --git a/mcrouter/lib/network/gen/MemcacheThriftTransport.h b/mcrouter/lib/network/gen/MemcacheThriftTransport.h index 386bec482..99b1c6e20 100644 --- a/mcrouter/lib/network/gen/MemcacheThriftTransport.h +++ b/mcrouter/lib/network/gen/MemcacheThriftTransport.h @@ -1166,7 +1166,7 @@ class ThriftTransport : public ThriftTransportMethods* getThriftClient() { if (FOLLY_UNLIKELY(!thriftClient_)) { thriftClient_ = createThriftClient>(); - if (flushList_) { + if (thriftClient_.has_value() && flushList_) { auto* channel = static_cast( thriftClient_->getChannel()); channel->setFlushList(flushList_);