Broker changes: adopt to recent IntrusivePtr API changes

This commit is contained in:
Johanna Amann 2020-06-03 16:48:16 -07:00
parent d9de6c4522
commit f080c8c294
4 changed files with 30 additions and 34 deletions

View file

@ -586,14 +586,14 @@ void Attributes::CheckAttr(Attr* a)
break;
}
if ( a->AttrExpr()->Type()->Tag() != TYPE_STRING )
if ( a->GetExpr()->GetType()->Tag() != TYPE_STRING )
{
Error("&broker_store must take a string argument");
break;
}
// Temporary since Broker does not support ListVals - and we cannot easily convert to set/vector
if ( type->AsTableType()->IndexTypes()->length() != 1 )
if ( type->AsTableType()->IndexTypes().size() != 1 )
{
Error("&broker_store only supports one-element set/table indexes");
}