We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1fc850 commit b39ab04Copy full SHA for b39ab04
1 file changed
fdbclient/SystemData.cpp
@@ -627,6 +627,16 @@ void decodeServerKeysValue(const ValueRef& value,
627
emptyRange = false;
628
id = UID();
629
} else {
630
+ // Value is unrecognized and too short to be a versioned UID
631
+ if (value.size() < sizeof(ProtocolVersion)) {
632
+ TraceEvent(SevWarnAlways, "DecodeServerKeysValueUnknown")
633
+ .detail("Value", value.toHexString())
634
+ .detail("Size", value.size());
635
+ assigned = false;
636
+ emptyRange = false;
637
+ id = UID();
638
+ return;
639
+ }
640
BinaryReader rd(value, IncludeVersion());
641
ASSERT(rd.protocolVersion().hasShardEncodeLocationMetaData());
642
rd >> id;
0 commit comments