mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 05:14:07 +00:00
show import_osmosis_log insert statements, print completed log after import_status inserts
This commit is contained in:
@@ -431,9 +431,10 @@
|
|||||||
}
|
}
|
||||||
$iFileSize = filesize($sImportFile);
|
$iFileSize = filesize($sImportFile);
|
||||||
$sBatchEnd = getosmosistimestamp($sOsmosisConfigDirectory);
|
$sBatchEnd = getosmosistimestamp($sOsmosisConfigDirectory);
|
||||||
echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
|
|
||||||
$sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','osmosis')";
|
$sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','osmosis')";
|
||||||
|
var_Dump($sSQL);
|
||||||
$oDB->query($sSQL);
|
$oDB->query($sSQL);
|
||||||
|
echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$iFileSize = filesize($sImportFile);
|
$iFileSize = filesize($sImportFile);
|
||||||
@@ -452,6 +453,7 @@
|
|||||||
$sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','osm2pgsql')";
|
$sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','osm2pgsql')";
|
||||||
var_Dump($sSQL);
|
var_Dump($sSQL);
|
||||||
$oDB->query($sSQL);
|
$oDB->query($sSQL);
|
||||||
|
echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
|
||||||
|
|
||||||
// Archive for debug?
|
// Archive for debug?
|
||||||
unlink($sImportFile);
|
unlink($sImportFile);
|
||||||
@@ -461,7 +463,7 @@
|
|||||||
|
|
||||||
// Index file
|
// Index file
|
||||||
$sThisIndexCmd = $sCMDIndex;
|
$sThisIndexCmd = $sCMDIndex;
|
||||||
$fCMDStartTime = time();
|
$fCMDStartTime = time();
|
||||||
|
|
||||||
if (!$aResult['no-npi'])
|
if (!$aResult['no-npi'])
|
||||||
{
|
{
|
||||||
@@ -519,9 +521,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
|
|
||||||
$sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','index')";
|
$sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','index')";
|
||||||
|
var_Dump($sSQL);
|
||||||
$oDB->query($sSQL);
|
$oDB->query($sSQL);
|
||||||
|
echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
|
||||||
|
|
||||||
$sSQL = "update import_status set lastimportdate = '$sBatchEnd'";
|
$sSQL = "update import_status set lastimportdate = '$sBatchEnd'";
|
||||||
$oDB->query($sSQL);
|
$oDB->query($sSQL);
|
||||||
|
|||||||
Reference in New Issue
Block a user