Skip to content

Fix SaveSnapshot timestamp metadata#7334

Merged
Aaronontheweb merged 1 commit into
akkadotnet:devfrom
Arkatufus:fix-snapshot-metadata
Sep 4, 2024
Merged

Fix SaveSnapshot timestamp metadata#7334
Aaronontheweb merged 1 commit into
akkadotnet:devfrom
Arkatufus:fix-snapshot-metadata

Conversation

@Arkatufus
Copy link
Copy Markdown
Contributor

@Arkatufus Arkatufus commented Sep 4, 2024

Currently, when SaveSnapshot() is invoked, the Metadata.Timestamp is ignored and always replaced with DateTime.UtcNow

Changes

SnapshotStore should only override the metadata timestamp if it is not set (DateTime.MinValue)

Copy link
Copy Markdown
Contributor Author

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

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

Self review

Comment thread src/core/Akka.Persistence/Snapshot/SnapshotStore.cs
Comment thread src/core/Akka.Persistence/Snapshot/SnapshotStore.cs
@Aaronontheweb
Copy link
Copy Markdown
Member

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) September 4, 2024 17:10
@Aaronontheweb Aaronontheweb merged commit cb11702 into akkadotnet:dev Sep 4, 2024
This was referenced Oct 7, 2025
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.

2 participants