HDFS-11013. Correct typos in native erasure coding dump code. Contributed by László Bence Nagy.
This commit is contained in:
parent
987ee51141
commit
b671ee6846
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue