mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
System attributes, Group and User quotas are local tables needs to be bootstraped locally
This commit is contained in:
1 parent
f949691cef
commit
dbe21675fa
4 files changed
+50
-32
No files matched your search
@@ -330,12 +330,18 @@ void Nebula::start(bool bootstrap_only)
|
||||
rc += DatastorePool::bootstrap(db);
|
||||
rc += ClusterPool::bootstrap(db);
|
||||
rc += DocumentPool::bootstrap(db);
|
||||
rc += UserQuotas::bootstrap(db);
|
||||
rc += GroupQuotas::bootstrap(db);
|
||||
|
||||
// Create the system tables only if bootstrap went well
|
||||
if (rc == 0)
|
||||
{
|
||||
rc += system_db->local_bootstrap();
|
||||
}
|
||||
|
||||
// Insert default system attributes
|
||||
rc += default_user_quota.insert();
|
||||
rc += default_group_quota.insert();
|
||||
}
|
||||
|
||||
if (shared_bootstrap)
|
||||
@@ -353,10 +359,6 @@ void Nebula::start(bool bootstrap_only)
|
||||
{
|
||||
rc += system_db->shared_bootstrap();
|
||||
}
|
||||
|
||||
// Insert default system attributes
|
||||
rc += default_user_quota.insert();
|
||||
rc += default_group_quota.insert();
|
||||
}
|
||||
|
||||
if ( rc != 0 )
|
||||
|
||||
Reference in new issue
Block a user