System attributes, Group and User quotas are local tables needs to be bootstraped locally

This commit is contained in:
Ruben S. Montero committed 2014-03-08 02:44:53 +01:00
1 parent f949691cef
commit dbe21675fa
4 files changed
+50 -32

No files matched your search

+6 -4
View File
@@ -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 )