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:
James Turner 2020-08-05 15:20:55 +01:00
parent f72e2ae644
commit 7943353a2a

View File

@ -1173,9 +1173,13 @@ HTTPRepository::failure() const
void HTTPRepoPrivate::failedToGetRootIndex(HTTPRepository::ResultCode 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,
HTTPRepository::ResultCode fileStatus)