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
f72e2ae644
commit
7943353a2a
@ -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