Deprecate RecordVal::LookupWithDefault() replace with GetFieldOrDefault()

(The former was previously changed during this release cycle to return
Intrusive pointer, but this just changes it back to return Val* and
deprecates it).
This commit is contained in:
Jon Siwek 2020-05-19 19:49:43 -07:00
parent f729247778
commit 2b4d80c849
7 changed files with 26 additions and 11 deletions

View file

@ -161,13 +161,13 @@ void File::RaiseFileOverNewConnection(Connection* conn, bool is_orig)
uint64_t File::LookupFieldDefaultCount(int idx) const
{
auto v = val->LookupWithDefault(idx);
auto v = val->GetFieldOrDefault(idx);
return v->AsCount();
}
double File::LookupFieldDefaultInterval(int idx) const
{
auto v = val->LookupWithDefault(idx);
auto v = val->GetFieldOrDefault(idx);
return v->AsInterval();
}