Revision 855d34f9 src/nebula/Nebula.cc

View differences:

src/nebula/Nebula.cc
245 245
            rc += ClusterPool::bootstrap(db);
246 246
            rc += DocumentPool::bootstrap(db);
247 247

  
248
            rc += DefaultQuotas::bootstrap(db);
249

  
248 250
            // Create the versioning table only if bootstrap went well
249 251
            if ( rc == 0 )
250 252
            {
......
340 342
        tpool  = new VMTemplatePool(db);
341 343

  
342 344
        dspool = new DatastorePool(db);
345

  
346
        default_user_quota.select(db);
347
        default_group_quota.select(db);
343 348
    }
344 349
    catch (exception&)
345 350
    {
......
681 686
{
682 687
    int             rc;
683 688
    ostringstream   oss;
689
    string          error;
684 690

  
685 691
    oss <<  "CREATE TABLE pool_control (tablename VARCHAR(32) PRIMARY KEY, "
686 692
            "last_oid BIGINT UNSIGNED)";
......
700 706

  
701 707
    rc += db->exec(oss);
702 708

  
709
    rc += default_user_quota.insert(db, error);
710
    rc += default_group_quota.insert(db, error);
711

  
703 712
    return rc;
704 713
}
705 714

  

Also available in: Unified diff