mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-18 12:10:00 +08:00
Merge pull request #7771 from bnamasivayam/fix-transaction-analyzer
Add missing CommitInfo fields to the transaction profiling analyzer
This commit is contained in:
commit
b9d156f0d9
@ -49,7 +49,7 @@ PROTOCOL_VERSION_6_1 = 0x0FDB00B061060001
|
|||||||
PROTOCOL_VERSION_6_2 = 0x0FDB00B062010001
|
PROTOCOL_VERSION_6_2 = 0x0FDB00B062010001
|
||||||
PROTOCOL_VERSION_6_3 = 0x0FDB00B063010001
|
PROTOCOL_VERSION_6_3 = 0x0FDB00B063010001
|
||||||
PROTOCOL_VERSION_7_0 = 0x0FDB00B070010001
|
PROTOCOL_VERSION_7_0 = 0x0FDB00B070010001
|
||||||
PROTOCOL_VERSION_7_1 = 0x0FDB00B071010001
|
PROTOCOL_VERSION_7_1 = 0x0FDB00B071010000
|
||||||
PROTOCOL_VERSION_7_2 = 0x0FDB00B072000000
|
PROTOCOL_VERSION_7_2 = 0x0FDB00B072000000
|
||||||
supported_protocol_versions = frozenset([PROTOCOL_VERSION_5_2, PROTOCOL_VERSION_6_0, PROTOCOL_VERSION_6_1,
|
supported_protocol_versions = frozenset([PROTOCOL_VERSION_5_2, PROTOCOL_VERSION_6_0, PROTOCOL_VERSION_6_1,
|
||||||
PROTOCOL_VERSION_6_2, PROTOCOL_VERSION_6_3, PROTOCOL_VERSION_7_0,
|
PROTOCOL_VERSION_6_2, PROTOCOL_VERSION_6_3, PROTOCOL_VERSION_7_0,
|
||||||
@ -245,6 +245,11 @@ class CommitInfo(BaseInfo):
|
|||||||
if protocol_version >= PROTOCOL_VERSION_6_3:
|
if protocol_version >= PROTOCOL_VERSION_6_3:
|
||||||
self.report_conflicting_keys = bb.get_bool()
|
self.report_conflicting_keys = bb.get_bool()
|
||||||
|
|
||||||
|
if protocol_version >= PROTOCOL_VERSION_7_1:
|
||||||
|
lock_aware = bb.get_bool()
|
||||||
|
if bb.get_bool():
|
||||||
|
spanId = bb.get_bytes(16)
|
||||||
|
|
||||||
|
|
||||||
class ErrorGetInfo(BaseInfo):
|
class ErrorGetInfo(BaseInfo):
|
||||||
def __init__(self, bb, protocol_version):
|
def __init__(self, bb, protocol_version):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user