apple / foundationdb

FoundationDB - the open source, distributed, transactional key-value store
https://apple.github.io/foundationdb/
Apache License 2.0
14.19k stars 1.29k forks source link

Hex decode add-prefix and remove-prefix for fdbrestore. #11344

Closed newhook closed 2 months ago

newhook commented 2 months ago

This is fix for https://github.com/apple/foundationdb/issues/1537.

--add-prefix and --remove-prefix command line arguments to fdbrestore are not hex decoded.

This also fixes a bug in the original decode_hex_string implementation where an error condition is not correctly flagged.

I tested the implementation locally and it works as expected.

Once this PR is merged I can create a fix against main.

Code-Reviewer Section

The general pull request guidelines can be found here.

Please check each of the following things and check all boxes before accepting a PR.

For Release-Branches

If this PR is made against a release-branch, please also check the following:

foundationdb-ci commented 2 months ago

Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x

foundationdb-ci commented 2 months ago

Result of foundationdb-pr-macos on macOS Ventura 13.x

foundationdb-ci commented 2 months ago

Result of foundationdb-pr-clang on Linux CentOS 7

foundationdb-ci commented 2 months ago

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

foundationdb-ci commented 2 months ago

Result of foundationdb-pr on Linux CentOS 7

foundationdb-ci commented 2 months ago

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

foundationdb-ci commented 2 months ago

Result of foundationdb-pr-clang on Linux CentOS 7

foundationdb-ci commented 2 months ago

Result of foundationdb-pr on Linux CentOS 7

jzhou77 commented 1 month ago

@newhook , do you mind porting this to the main branch?

newhook commented 3 weeks ago

@newhook , do you mind porting this to the main branch?

https://github.com/apple/foundationdb/pull/11463