Revision b7febc83 src/nebula/Nebula.cc

View differences:

src/nebula/Nebula.cc
217 217
            {
218 218
                throw runtime_error("Could not create database.");
219 219
            }
220

  
221
            oss.str("");
222
            oss << "USE " << db_name;
223
            rc = db->exec(oss);
224
            if ( rc != 0 )
225
            {
226
                throw runtime_error("Could not open database.");
227
            }
220 228
        }
221 229

  
222 230
        NebulaLog::log("ONE",Log::INFO,"Bootstraping OpenNebula database.");

Also available in: Unified diff