In the test TableFileIndexData of file corruption_test.cc, i comment the line corruping data. then the check function failed, this is correct because the data are not corrupted. but if i change Value function as following,
the strange things happen.The Check functioin only get 9999 correct value and get a bad value.I'm very confusing.
The code of test TableFileIndexData are as following:
The result of test TableFileIndexData are as following:
In the test TableFileIndexData of file corruption_test.cc, i comment the line corruping data. then the check function failed, this is correct because the data are not corrupted. but if i change Value function as following,
the strange things happen.The Check functioin only get 9999 correct value and get a bad value.I'm very confusing.
The code of test TableFileIndexData are as following:
The result of test TableFileIndexData are as following: