Skip to content

Commit cd55347

Browse files
committed
get filestore version
1 parent a7661a4 commit cd55347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func deleteFromFileStore(ctx context.Context, allocationID string) error {
400400
return datastore.GetStore().WithNewTransaction(func(ctx context.Context) error {
401401
db := datastore.GetStore().GetTransaction(ctx)
402402

403-
err := db.Model(&reference.Ref{}).Unscoped().Select("id", "validation_root", "thumbnail_hash").
403+
err := db.Model(&reference.Ref{}).Unscoped().Select("id", "validation_root", "thumbnail_hash", "filestore_version").
404404
Where("allocation_id=? AND is_precommit=? AND type=? AND deleted_at is not NULL", allocationID, true, reference.FILE).
405405
FindInBatches(&results, 100, func(tx *gorm.DB, batch int) error {
406406

0 commit comments

Comments
 (0)