Revision fed93cda src/market/MarketPlaceAppPool.cc

View differences:

src/market/MarketPlaceAppPool.cc
128 128

  
129 129
    *oid = PoolSQL::allocate(mp, error_str);
130 130

  
131
    // ------------------------------------------------------------------------
132
    // Insert id into map_check
133
    // --------------------------------------------------------------------------
134
    insert_map_check(name);
135

  
131 136
    return *oid;
132 137

  
133 138
error_duplicated:
......
183 188
        return 0;
184 189
    }
185 190

  
191
    drop_map_check(objsql->get_name());
192

  
186 193
    return PoolSQL::drop(objsql, error_msg);
187 194
}
188 195

  
......
229 236

  
230 237
    if( mp_aux != 0 ) //Marketplace app already imported
231 238
    {
239
        reset_map_check(app->name);
232 240
        if ( mp_aux->version != app->version || mp_aux->md5 != app->md5 )
233 241
        {
234 242
            mp_aux->from_template64(t64, error_str);
......
255 263

  
256 264
        return oid;
257 265
    }
258

  
266
    insert_map_check(app->name);
259 267
    return PoolSQL::allocate(app, error_str);
260 268
}
261 269

  

Also available in: Unified diff