Skip to content

Commit d270ec7

Browse files
committed
read only in rollback
1 parent 72454ce commit d270ec7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/go/0chain.net/blobbercore/allocation/protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func FetchAllocationFromEventsDB(ctx context.Context, allocationID string, alloc
113113
a.StartTime = sa.StartTime
114114
a.StorageVersion = uint8(sa.StorageVersion)
115115
a.OwnerSigningPublicKey = sa.OwnerSigningPublicKey
116-
logging.Logger.Info("OwnerSigningPublicKey", zap.String("OwnerSigningPublicKey", a.OwnerSigningPublicKey))
116+
logging.Logger.Info("OwnerSigningPublicKey", zap.String("OwnerSigningPublicKey", a.OwnerSigningPublicKey), zap.String("allocation_id", a.ID))
117117

118118
m := map[string]interface{}{
119119
"allocation_id": a.ID,

code/go/0chain.net/blobbercore/handler/object_operation_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ func (fsh *StorageHandler) Rollback(ctx context.Context, r *http.Request) (*blob
18321832
err error
18331833
)
18341834

1835-
allocationObj, err = fsh.verifyAllocation(ctx, allocationId, allocationTx, false)
1835+
allocationObj, err = fsh.verifyAllocation(ctx, allocationId, allocationTx, true)
18361836
if err != nil {
18371837
Logger.Error("Error in verifying allocation", zap.Error(err))
18381838
return nil, common.NewError("invalid_parameters", "Invalid allocation id passed."+err.Error())

0 commit comments

Comments
 (0)