rocksdb
rocksdb copied to clipboard
IngestExternalFile put file on bottom level but on db_paths[0]
Expected behavior
IngestExternalFile
should put file on db_paths according to level.
Actual behavior
IngestExternalFile
put file on bottom level but on db_paths[0]
.
Steps to reproduce the behavior
- Set
Options
with level style compaction - Set
Options
with multipledb_paths
- Open db with defined Options
- IngestExternalFile
Is there any progress?
IngestExternalFile func link/copy the sst file to db_paths[0] in preparing stage and assign the level to sst file in run stage。 This is why put file on bottom level but on db_paths[0]. In order to fix it, we need to get the correct level of sst file before link/copy
Is there any progress?