Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ func (fsh *StorageHandler) CommitWrite(ctx context.Context, r *http.Request) (*b

err = checkPendingMarkers(ctx, allocationObj.ID)
if err != nil {
fmt.Println("Error checking pending markers", err)
Logger.Error("Error checking pending markers", zap.Error(err))
return nil, common.NewError("pending_markers", "previous marker is still pending to be redeemed")
}
Expand Down
3 changes: 3 additions & 0 deletions code/go/0chain.net/blobbercore/writemarker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package writemarker

import (
"context"
"fmt"
"math/rand"
"strings"
"sync"
Expand Down Expand Up @@ -80,7 +81,9 @@ func SaveMarkerData(allocationID string, timestamp common.Timestamp, chainLength
func CheckProcessingMarker(allocationID string) bool {
markerDataMut.Lock()
defer markerDataMut.Unlock()
fmt.Println("CheckProcessingMarker", allocationID)
if data, ok := markerDataMap[allocationID]; ok {
fmt.Println("CheckProcessingMarker: data.processing", data.processing)
return data.processing
}
return false
Expand Down
Loading