Extractor dies more gracefully now if the stxxl singleton is already in
use.
This commit is contained in:
parent
6da047005a
commit
835bf436e4
@ -69,8 +69,16 @@ bool removeIfUnused(ClassT n) { return (false == n.used); }
|
|||||||
|
|
||||||
|
|
||||||
int main (int argc, char *argv[]) {
|
int main (int argc, char *argv[]) {
|
||||||
|
|
||||||
GUARANTEE((argc > 1) ,"usage: \n" << argv[0] << " <file.osm/.osm.bz2/.osm.pbf>");
|
GUARANTEE((argc > 1) ,"usage: \n" << argv[0] << " <file.osm/.osm.bz2/.osm.pbf>");
|
||||||
|
|
||||||
|
//Check if another instance of stxxl is already running or if there is a general problem
|
||||||
|
try {
|
||||||
|
stxxl::vector<unsigned> testForRunningInstance;
|
||||||
|
} catch(std::exception & e) {
|
||||||
|
ERR("Could not instantiate STXXL layer." << std::endl << e.what());
|
||||||
|
}
|
||||||
|
|
||||||
INFO("extracting data from input file " << argv[1]);
|
INFO("extracting data from input file " << argv[1]);
|
||||||
bool isPBF(false);
|
bool isPBF(false);
|
||||||
std::string outputFileName(argv[1]);
|
std::string outputFileName(argv[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user