Merge pull request #42443 from pamarcos/fix_typos

Fix typos in FileSegment code documentation and sync exception text with source code
This commit is contained in:
Kseniia Sumarokova 2022-10-19 12:48:12 +02:00 committed by GitHub
commit 2bc30634cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ FileSegment::FileSegment(
{
throw Exception(
ErrorCodes::REMOTE_FS_OBJECT_CACHE_ERROR,
"Can create cell with either EMPTY, DOWNLOADED, DOWNLOADING state");
"Can only create cell with either EMPTY, DOWNLOADED or SKIP_CACHE state");
}
}
}

View File

@ -66,10 +66,10 @@ public:
*/
DOWNLOADING,
/**
* Space reservation for a file segment is incremental, i.e. downaloder reads buffer_size bytes
* Space reservation for a file segment is incremental, i.e. downloader reads buffer_size bytes
* from remote fs -> tries to reserve buffer_size bytes to put them to cache -> writes to cache
* on successful reservation and stops cache write otherwise. Those, who waited for the same file
* file segment, will read downloaded part from cache and remaining part directly from remote fs.
* segment, will read downloaded part from cache and remaining part directly from remote fs.
*/
PARTIALLY_DOWNLOADED_NO_CONTINUATION,
/**