From 57f5ca2522c3a9b94bbfecdd97cad2799948779f Mon Sep 17 00:00:00 2001 From: Bala Namasivayam Date: Mon, 9 May 2022 19:12:12 -0700 Subject: [PATCH] Fix deserialization of tenant field in 7.1 --- .../transaction_profiling_analyzer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/transaction_profiling_analyzer/transaction_profiling_analyzer.py b/contrib/transaction_profiling_analyzer/transaction_profiling_analyzer.py index e304e7ddaa..e704cacb72 100644 --- a/contrib/transaction_profiling_analyzer/transaction_profiling_analyzer.py +++ b/contrib/transaction_profiling_analyzer/transaction_profiling_analyzer.py @@ -194,7 +194,8 @@ class BaseInfo(object): if protocol_version >= PROTOCOL_VERSION_6_3: self.dc_id = bb.get_bytes_with_length() if protocol_version >= PROTOCOL_VERSION_7_1: - self.tenant = bb.get_bytes_with_length() + if bb.get_bytes(1): + self.tenant = bb.get_bytes_with_length() class GetVersionInfo(BaseInfo): def __init__(self, bb, protocol_version):