HDFS-11013. Correct typos in native erasure coding dump code. Contributed by László Bence Nagy.

This commit is contained in:
Andrew Wang 2016-10-17 14:14:50 -07:00
parent 987ee51141
commit b671ee6846
2 changed files with 5 additions and 5 deletions

View File

@ -57,11 +57,11 @@ void dumpCodingMatrix(unsigned char* buf, int n1, int n2) {
void dumpEncoder(IsalEncoder* pCoder) {
int numDataUnits = pCoder->coder.numDataUnits;
int numParityUnits = pCoder->coder.numDataUnits;
int numParityUnits = pCoder->coder.numParityUnits;
int numAllUnits = pCoder->coder.numAllUnits;
printf("Encoding (numAlnumParityUnitslUnits = %d, numDataUnits = %d)\n",
numParityUnits, numDataUnits);
printf("Encoding (numAllUnits = %d, numParityUnits = %d, numDataUnits = %d)\n",
numAllUnits, numParityUnits, numDataUnits);
printf("\n\nEncodeMatrix:\n");
dumpCodingMatrix((unsigned char*) pCoder->encodeMatrix,
@ -91,7 +91,7 @@ void dumpDecoder(IsalDecoder* pCoder) {
printf("InvertMatrix:\n");
dumpCodingMatrix((unsigned char*) pCoder->invertMatrix,
numDataUnits, numDataUnits);
numDataUnits, numAllUnits);
printf("DecodeMatrix:\n");
dumpCodingMatrix((unsigned char*) pCoder->decodeMatrix,

View File

@ -57,7 +57,7 @@ typedef void (*__d_ec_encode_data_update)(int, int, int, int, unsigned char*,
#endif
#ifdef WINDOWS
// For erasure_code.h
// For gf_util.h
typedef unsigned char (__cdecl *__d_gf_mul)(unsigned char, unsigned char);
typedef unsigned char (__cdecl *__d_gf_inv)(unsigned char);
typedef void (__cdecl *__d_gf_gen_rs_matrix)(unsigned char *, int, int);