chore: factor out rdb_load utilities into separate files (#4315)

* chore: factor out rdb_load utilities into separate files

rdb_load.cc is huge and contains many auxillary classes.
This PR moves DecompressImpl and ErrorRdb code into detail/

It also fixes minor bugs around error conditions with de-compression:
a. Do not check-fail on invalid opcode and return error_code instead.
b. Print correctly LZ4 errors.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>

* chore: fixes

---------

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-12-16 11:16:02 +02:00 committed by GitHub
parent 027eff2ad3
commit 53d6b64233
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 278 additions and 203 deletions

View file

@ -79,4 +79,6 @@ enum errc {
} // namespace rdb
std::error_code RdbError(rdb::errc ev);
} // namespace dfly