diff --git a/fdbserver/StorageCache.actor.cpp b/fdbserver/StorageCache.actor.cpp index b33f1c44f8..4754dcc9aa 100644 --- a/fdbserver/StorageCache.actor.cpp +++ b/fdbserver/StorageCache.actor.cpp @@ -1951,7 +1951,7 @@ ACTOR Future storageCacheStartUpWarmup(StorageCacheData* self) { state Transaction tr(self->cx); state Value trueValue = storageCacheValue(std::vector{ 0 }); state Value falseValue = storageCacheValue(std::vector{}); - state MutationRef privatized; + state Standalone privatized; privatized.type = MutationRef::SetValue; state Version readVersion; try { @@ -1969,7 +1969,7 @@ ACTOR Future storageCacheStartUpWarmup(StorageCacheData* self) { ASSERT(currCached == (kv.value == falseValue)); if (kv.value == trueValue) { begin = kv.key; - privatized.param1 = begin.withPrefix(systemKeys.begin); + privatized.param1 = begin.withPrefix(systemKeys.begin, privatized.arena()); privatized.param2 = serverKeysTrue; //TraceEvent(SevDebug, "SCStartupFetch", self->thisServerID). // detail("BeginKey", begin.substr(storageCacheKeys.begin.size())). @@ -1979,7 +1979,7 @@ ACTOR Future storageCacheStartUpWarmup(StorageCacheData* self) { } else { currCached = false; end = kv.key; - privatized.param1 = begin.withPrefix(systemKeys.begin); + privatized.param1 = begin.withPrefix(systemKeys.begin, privatized.arena()); privatized.param2 = serverKeysFalse; //TraceEvent(SevDebug, "SCStartupFetch", self->thisServerID).detail("EndKey", end.substr(storageCacheKeys.begin.size())). // detail("ReadVersion", readVersion).detail("DataVersion", self->version.get());