Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcs immu #10

Closed
wants to merge 13 commits into from
Closed

gcs immu #10

wants to merge 13 commits into from

Conversation

KastenMike
Copy link
Owner

No description provided.

fmt.Printf("newestAtUnlessDeleted del pit %s deleted=%t\n", v.Timestamp, v.IsDeleteMarker)

//return v, !v.IsDeleteMarker
return v, !v.IsDeleteMarker
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fmt.Printf("getOlderThan %s: vs[i].Timestamp: %s \n", t, vs[i].Timestamp)
if vs[i].Timestamp.After(t) {
fmt.Printf(" Skippo versione %s del %s. Troppo nuova.\n", vs[i].Version, vs[i].Timestamp)
return vs[:i]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bm := blob.Metadata{
BlobID: toBlobID(oi.Name, prefix),
Length: oi.Size,
Timestamp: oi.Created,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fmt.Printf("****\n\nfile: %s#%d has created: %v and deleted: %v - vs PIT: %v\n\n****", oi.Name, oi.Generation, oi.Created, oi.Deleted, *gcs.PointInTime)
return versionMetadata{
Metadata: bm,
IsDeleteMarker: !oi.Deleted.IsZero() && (gcs.PointInTime == nil || oi.Deleted.Before(*gcs.PointInTime)), // needs to consider PIT...
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KastenMike KastenMike closed this Aug 30, 2024
@KastenMike KastenMike reopened this Sep 13, 2024
@KastenMike KastenMike closed this Sep 13, 2024
@KastenMike KastenMike deleted the gcs-immu branch September 26, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant