1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-08 05:57:23 +03:00

feature #201: set cluster id to -1 on error.

This commit is contained in:
Carlos Martín 2010-07-09 17:42:16 +02:00 committed by Ruben S. Montero
parent ddb9f27ca0
commit fd0da733a9

View File

@ -58,7 +58,8 @@ int ClusterPool::allocate(int * clid, string name, SqlDB *db)
error_existing_name:
error_db:
error_common:
return -1;
*clid = -1;
return *clid;
}
/* -------------------------------------------------------------------------- */