mirror of
https://github.com/facebook/rocksdb.git
synced 2026-07-07 14:47:40 +08:00
Update error message for plain table reader max file size (#14056)
Summary: Currently we return `File is too large for PlainTableReader!` when the file size exceeds our pre-defined constant. There was a request to have the file size information logged when this error is returned. Pull Request resolved: https://github.com/facebook/rocksdb/pull/14056 Reviewed By: nmk70 Differential Revision: D84834869 Pulled By: archang19 fbshipit-source-id: 8f332b6a31d51f320c7e2db06ad49f50798ff70e
This commit is contained in:
committed by
meta-codesync[bot]
parent
ad83352c39
commit
622186adec
@@ -120,7 +120,9 @@ Status PlainTableReader::Open(
|
|||||||
bool full_scan_mode, const bool immortal_table,
|
bool full_scan_mode, const bool immortal_table,
|
||||||
const SliceTransform* prefix_extractor) {
|
const SliceTransform* prefix_extractor) {
|
||||||
if (file_size > PlainTableIndex::kMaxFileSize) {
|
if (file_size > PlainTableIndex::kMaxFileSize) {
|
||||||
return Status::NotSupported("File is too large for PlainTableReader!");
|
return Status::NotSupported("File size " + std::to_string(file_size) +
|
||||||
|
" exceeds PlainTableReader max file size " +
|
||||||
|
std::to_string(PlainTableIndex::kMaxFileSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<TableProperties> props;
|
std::unique_ptr<TableProperties> props;
|
||||||
|
|||||||
Reference in New Issue
Block a user