Update local kv's contruction using result.arena()

This commit is contained in:
Chaoguang Lin 2020-09-02 13:38:24 -07:00
parent 0dc5736f54
commit 430921f25f
1 changed files with 2 additions and 4 deletions

View File

@ -979,12 +979,10 @@ ACTOR Future<Standalone<RangeResultRef>> getProcessClassActor(ReadYourWritesTran
Standalone<RangeResultRef> result;
for (auto& w : workers) {
// exclude :tls in keys even the network addresss is TLS
Key k(prefix.withSuffix(formatIpPort(w.address.ip, w.address.port)));
KeyRef k(prefix.withSuffix(formatIpPort(w.address.ip, w.address.port), result.arena()));
if (kr.contains(k)) {
Value v(w.processClass.toString());
ValueRef v(result.arena(), w.processClass.toString());
result.push_back(result.arena(), KeyValueRef(k, v));
result.arena().dependsOn(k.arena());
result.arena().dependsOn(v.arena());
}
}
if (ryw->readYourWritesDisabled()) return result;