@@ -330,6 +331,10 @@ int sev_dbms_env::checkAndUpdateVersion(unsigned int version)
printf("Updating database tables to sev version 2\n");
updateDBToSevVersion2();
}
if(old_version<3){
printf("Updating database tables to sev version 3\n");
createSevVersion3Tables();
}
if(old_version!=version){
charquery[100];
...
...
@@ -464,6 +469,24 @@ int sev_dbms_env::createSevVersion2Tables(void)
return1;
}
intsev_dbms_env::createSevVersion3Tables(void)
{
charquery[400];
sprintf(query,"create table sev_stat (current_load float,medium_load float,datastore_msg_cnt int unsigned,dataget_msg_cnt int unsigned,items_msg_cnt int unsigned,eventstore_msg_cnt int unsigned);");