Skip to content

Commit

Permalink
Don't try to persist tombstones if you don't know the sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Jul 2, 2024
1 parent 725e340 commit b19e782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>7.21.0</Version>
<Version>7.21.1</Version>
<LangVersion>12.0</LangVersion>
<Authors>Jeremy D. Miller;Babu Annamalai;Oskar Dudycz;Joona-Pekka Kokko</Authors>
<PackageIconUrl>https://martendb.io/logo.png</PackageIconUrl>
Expand Down
1 change: 1 addition & 0 deletions src/Marten/Events/EventGraph.Processing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ internal bool TryCreateTombstoneBatch(DocumentSessionBase session, out UpdateBat
operations.Add(new EstablishTombstoneStream(this, session.TenantId));
var tombstones = session.WorkTracker.Streams
.SelectMany(x => x.ToTombstoneEvents(mapping, tombstone))
.Where(x => x.Sequence != 0) // don't even try to save a tombstone if you don't know the sequence
.Select(x => new Event<Tombstone>(tombstone)
{
Sequence = x.Sequence,
Expand Down

0 comments on commit b19e782

Please sign in to comment.