Fix the bug that Upgrading from rocksdb-4.13 to rocksdb-6.12.6 failed…(#10) #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… initialization
Fix the bug that the initialization failed when upgrading from rocksdb-4.13 to rocksdb-6.12.6...(#10)
During initialization, the MANIFEST file of rocksdb is checked to obtain the column family name, but the CURENT file that stores the MANIFEST log in the initial state does not exist, and the error code of IOERROR is returned. The corresponding subcode of IOERROR returned by rocksdb4.13 is kNone, rocksdb6.4.6 Version IOERROR adds a subcode of kPathNotFound.
Stonedb judged that there is only kNone, so it did not go through the process of creating the default column family, resulting in "Default column family not specified" and subsequent errors. Add the "rocksdb::Status::kPathNotFound" judgment process of subcode to create a default column family file to solve the problem of initialization failure
Summary about this PR
Issue Number: close #10
Tests Check List
Changelog
Documentation