Terraysnc: fix incorrect handling of ‘entirely ocean’ tiles
We had some confusion between two error codes, meaning we would log an error (and treat as a failure) a pure ocean 1x1 area, even though this was entirely correct and expected behaviour. Terrasync.cxx expected REPO_ERROR_NOT_FOUND, we need to convert the file-level error to that, and avoid logging a warning.
This commit is contained in:
parent
27a3ee3bce
commit
2fe60c9635
@ -1173,8 +1173,12 @@ HTTPRepository::failure() const
|
||||
|
||||
void HTTPRepoPrivate::failedToGetRootIndex(HTTPRepository::ResultCode st)
|
||||
{
|
||||
SG_LOG(SG_TERRASYNC, SG_WARN, "Failed to get root of repo:" << baseUrl << " " << st);
|
||||
status = st;
|
||||
if (st == HTTPRepository::REPO_ERROR_FILE_NOT_FOUND) {
|
||||
status = HTTPRepository::REPO_ERROR_NOT_FOUND;
|
||||
} else {
|
||||
SG_LOG(SG_TERRASYNC, SG_WARN, "Failed to get root of repo:" << baseUrl << " " << st);
|
||||
status = st;
|
||||
}
|
||||
}
|
||||
|
||||
void HTTPRepoPrivate::failedToUpdateChild(const SGPath& relativePath,
|
||||
|
Loading…
Reference in New Issue
Block a user