object: Initial EC implementation #69

Merged
fyrchik merged 1 commit from fyrchik/frostfs-api-go:erasure-code into master 2024-03-20 09:39:38 +00:00
Owner

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik requested review from storage-core-committers 2024-03-19 06:55:35 +00:00
fyrchik requested review from storage-core-developers 2024-03-19 06:55:38 +00:00
fyrchik force-pushed erasure-code from 54a4bcdbe6 to d278046e72 2024-03-19 06:55:38 +00:00 Compare
fyrchik force-pushed erasure-code from d278046e72 to baa78b24ed 2024-03-19 07:58:06 +00:00 Compare
fyrchik force-pushed erasure-code from baa78b24ed to 5606868c3e 2024-03-19 08:55:05 +00:00 Compare
dstepanov-yadro requested changes 2024-03-19 09:11:01 +00:00
@ -594,0 +659,4 @@
if s != nil {
m = new(object.ECInfo)
chunks := make([]*object.ECInfo_Chunk, len(s.Chunks))

If s.Chunks == nil, then m.Chunks == []*object.ECInfo_Chunk{}. But ECInfo.FromGRPCMessage has different implementation. Implementations should be the same.

If `s.Chunks == nil`, then `m.Chunks == []*object.ECInfo_Chunk{}`. But `ECInfo.FromGRPCMessage` has different implementation. Implementations should be the same.
Author
Owner

Fixed, added tests for conversion.

Fixed, added tests for conversion.
object/types.go Outdated
@ -1451,6 +1484,7 @@ func (b *PutSingleRequestBody) GetObject() *Object {
}
func (b *PutSingleRequestBody) SetObject(o *Object) {
spew.Dump(o)

Hw, debugee?

Hw, debugee?
Author
Owner

Fixed

Fixed
fyrchik force-pushed erasure-code from 5606868c3e to c738088691 2024-03-19 11:19:09 +00:00 Compare
fyrchik force-pushed erasure-code from c738088691 to 1772b92182 2024-03-19 12:23:18 +00:00 Compare
dstepanov-yadro approved these changes 2024-03-20 06:06:00 +00:00
acid-ant approved these changes 2024-03-20 08:36:11 +00:00
aarifullin approved these changes 2024-03-20 09:30:24 +00:00
fyrchik merged commit 1772b92182 into master 2024-03-20 09:39:38 +00:00
fyrchik deleted branch erasure-code 2024-03-20 09:39:40 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-api-go#69
No description provided.