diff --git a/fdbserver/ConfigDatabaseUnitTests.actor.cpp b/fdbserver/ConfigDatabaseUnitTests.actor.cpp index 3472fe28af..e41083e3a7 100644 --- a/fdbserver/ConfigDatabaseUnitTests.actor.cpp +++ b/fdbserver/ConfigDatabaseUnitTests.actor.cpp @@ -344,7 +344,7 @@ class TransactionEnvironment { state Key configKey = encodeConfigKey(configClass, knobName); state Optional value = wait(tr->get(configKey)); if (expected.present()) { - ASSERT_EQ(BinaryReader::fromStringRef(value.get(), Unversioned()), expected.get()); + ASSERT_EQ(Tuple::unpack(value.get()).getInt(0), expected.get()); } else { ASSERT(!value.present()); } diff --git a/fdbserver/workloads/ConfigIncrement.actor.cpp b/fdbserver/workloads/ConfigIncrement.actor.cpp index 3d709b03c4..fb8ae79974 100644 --- a/fdbserver/workloads/ConfigIncrement.actor.cpp +++ b/fdbserver/workloads/ConfigIncrement.actor.cpp @@ -44,7 +44,8 @@ class ConfigIncrementWorkload : public TestWorkload { if (!serializedValue.present()) { return 0; } else { - int value = BinaryReader::fromStringRef(serializedValue.get(), Unversioned()); + Tuple t = Tuple::unpack(serializedValue.get()); + int value = t.getInt(0); te.detail("Value", value); return value; }