Fix profiler labels

This commit is contained in:
Sandro Santilli
2014-02-11 13:40:17 +01:00
parent e3a5f398e4
commit 7a749631e8
+2 -2
View File
@@ -650,12 +650,12 @@ console.log("Checking authorization from signer " + signer + " for resource " +
that.setDBConn(user, req.params, this);
},
function getGeometryType(err){
if (req.profiler) req.profiler.done('cartoData.getDatabase');
if (req.profiler) req.profiler.done('setDBConn');
if (err) throw err;
cartoData.getTableGeometryType(req.params.dbname, req.params.table, this);
},
function finishSetup(err, data){
if (req.profiler) req.profiler.done('cartoData.getGeometryType');
if (req.profiler) req.profiler.done('cartoData.getTableGeometryType');
if ( err ) { callback(err, req); return; }
if (!_.isNull(data))