Removing deprecated fields from the connection record.

Removing "hot" and "addl", which haven't been used anymore for a long
time. Also removing the functions append_addl() and append_addl_marker().
This commit is contained in:
Robin Sommer 2015-04-20 19:46:45 -07:00
parent de1e2fe20b
commit 770f833ea2
8 changed files with 179 additions and 208 deletions

View file

@ -375,17 +375,15 @@ RecordVal* Connection::BuildConnVal()
conn_val->Assign(2, resp_endp);
// 3 and 4 are set below.
conn_val->Assign(5, new TableVal(string_set)); // service
conn_val->Assign(6, new StringVal("")); // addl
conn_val->Assign(7, new Val(0, TYPE_COUNT)); // hot
conn_val->Assign(8, new StringVal("")); // history
conn_val->Assign(6, new StringVal("")); // history
if ( ! uid )
uid.Set(bits_per_uid);
conn_val->Assign(9, new StringVal(uid.Base62("C").c_str()));
conn_val->Assign(7, new StringVal(uid.Base62("C").c_str()));
if ( encapsulation && encapsulation->Depth() > 0 )
conn_val->Assign(10, encapsulation->GetVectorVal());
conn_val->Assign(8, encapsulation->GetVectorVal());
}
if ( root_analyzer )
@ -393,7 +391,7 @@ RecordVal* Connection::BuildConnVal()
conn_val->Assign(3, new Val(start_time, TYPE_TIME)); // ###
conn_val->Assign(4, new Val(last_time - start_time, TYPE_INTERVAL));
conn_val->Assign(8, new StringVal(history.c_str()));
conn_val->Assign(6, new StringVal(history.c_str()));
conn_val->SetOrigin(this);

View file

@ -3207,9 +3207,7 @@ function lookup_connection%(cid: conn_id%): connection
c->Assign(3, new Val(network_time, TYPE_TIME));
c->Assign(4, new Val(0.0, TYPE_INTERVAL));
c->Assign(5, new TableVal(string_set)); // service
c->Assign(6, new StringVal("")); // addl
c->Assign(7, new Val(0, TYPE_COUNT)); // hot
c->Assign(8, new StringVal("")); // history
c->Assign(6, new StringVal("")); // history
return c;
%}