erasure is now external pull it and update from minio-io/erasure

This commit is contained in:
Harshavardhana
2015-04-05 23:51:24 -07:00
parent 603b851226
commit 319feb52f1
56 changed files with 12 additions and 21158 deletions

View File

@@ -12,7 +12,7 @@
},
{
"ImportPath": "github.com/minio-io/erasure",
"Rev": "3cece1a107115563682604b1430418e28f65dd80"
"Rev": "8a72b14991a6835b4d30403e7cb201f373b7cb3a"
},
{
"ImportPath": "github.com/minio-io/minio/pkg/utils/split",

View File

@@ -20,7 +20,7 @@ import (
"bytes"
"testing"
. "gopkg.in/check.v1"
. "github.com/minio-io/check"
)
type MySuite struct{}

View File

@@ -2,7 +2,7 @@
Copyright(c) 2011-2015 Intel Corporation All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
@@ -41,7 +41,7 @@
extern "C" {
#endif
#ifndef __unix__
#if !defined(__unix__) && !defined(__APPLE__)
#ifdef __MINGW32__
# include <_mingw.h>
#endif
@@ -59,7 +59,7 @@ typedef unsigned char UINT8;
#endif
#ifdef __unix__
#if defined(__unix__) || defined(__APPLE__)
# define DECLARE_ALIGNED(decl, alignval) decl __attribute__((aligned(alignval)))
# define __forceinline static inline
#else

View File

@@ -32,9 +32,10 @@ import (
// blocks. Decode can withstand data loss up to any M number of blocks.
//
// "encodedDataBlocks" is an array of K data blocks and M parity
// blocks. Data blocks are position and order dependent. Missing blocks
// are set to "nil". There must be at least "K" number of data|parity
// blocks.
// blocks. Data blocks are position and order dependent. Missing blocks
// are set to "nil". There must be at least "K" number of data|parity
// blocks.
//
// "dataLen" is the length of original source data
func (e *Erasure) Decode(encodedDataBlocks [][]byte, dataLen int) (decodedData []byte, err error) {
var source, target **C.uchar

View File

@@ -19,7 +19,7 @@ package erasure
import (
"bytes"
. "gopkg.in/check.v1"
. "github.com/minio-io/check"
)
func corruptChunks(chunks [][]byte, errorIndex []int) [][]byte {