Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReconstructData (0.16 sec)

  1. cmd/erasure-coding.go

    	for _, b := range data {
    		if len(b) == 0 {
    			isZero++
    			break
    		}
    	}
    	if isZero == 0 || isZero == len(data) {
    		// If all are zero, payload is 0 bytes.
    		return nil
    	}
    	return e.encoder().ReconstructData(data)
    }
    
    // DecodeDataAndParityBlocks decodes the given erasure-coded data and verifies it.
    // It returns an error if the decoding failed.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    				split[idx] = sh
    				if idx >= k && len(sh) > 0 {
    					hasParity++
    				}
    			}
    			fmt.Printf("Have %d complete remapped data shards and %d complete parity shards. ", ok, hasParity)
    
    			if err := rs.ReconstructData(split); err == nil {
    				fmt.Println("Could reconstruct completely")
    				for i, data := range split[:k] {
    					start := i * len(data)
    					copy(m.mapped[start:], data)
    				}
    				lastValid = m.size - 1
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top