Feature #3175: Make sec groups start with ID 100

This commit is contained in:
Carlos Martín committed 2014-09-08 17:53:29 +02:00
1 parent 73fb50184d
commit bb7a97209b
1 file changed
+12 -1
+12 -1
View File
@@ -20,7 +20,18 @@
SecurityGroupPool::SecurityGroupPool(SqlDB * db)
:PoolSQL(db, SecurityGroup::table, true, true)
{}
{
//lastOID is set in PoolSQL::init_cb
if (get_lastOID() == -1)
{
// The first 100 IDs are reserved for system Security Groups.
// Regular ones start from ID 100
set_update_lastOID(99);
}
return;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */