Fixed filedescriptor overflow in fgfs-tools-client which led the client to think that the MASTER_ON file did not exist.
This commit is contained in:
parent
0a32b5f3bc
commit
1a4b3a1d98
1 changed files with 3 additions and 0 deletions
|
@ -239,10 +239,12 @@ static bool must_generate( const SGBucket& b ) {
|
||||||
}
|
}
|
||||||
if ( have_btg && src_stat.st_mtime>btg_stat.st_mtime ) {
|
if ( have_btg && src_stat.st_mtime>btg_stat.st_mtime ) {
|
||||||
cout << " File " << file << " is newer than btg-file => rebuild\n";
|
cout << " File " << file << " is newer than btg-file => rebuild\n";
|
||||||
|
closedir(loaddir);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ( have_stg && src_stat.st_mtime>stg_stat.st_mtime ) {
|
if ( have_stg && src_stat.st_mtime>stg_stat.st_mtime ) {
|
||||||
cout << " File " << file << " is newer than stg-file => rebuild\n";
|
cout << " File " << file << " is newer than stg-file => rebuild\n";
|
||||||
|
closedir(loaddir);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/* Ignore elevation data, as it is not used if we have no
|
/* Ignore elevation data, as it is not used if we have no
|
||||||
|
@ -253,6 +255,7 @@ static bool must_generate( const SGBucket& b ) {
|
||||||
continue;
|
continue;
|
||||||
if ( !(have_stg && have_btg) ) {
|
if ( !(have_stg && have_btg) ) {
|
||||||
cout << " There is source-data (" << file << ") for tile " << b.gen_index_str() << " but .btg or .stg is missing => build\n";
|
cout << " There is source-data (" << file << ") for tile " << b.gen_index_str() << " but .btg or .stg is missing => build\n";
|
||||||
|
closedir(loaddir);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue