8142
// which is not supported by today's DB schema.
8143
// TODO: we don't delete updateInfo today. Track them here when we do.
8145
>
8146
>
tombstoneBatch := &persistencespb.StateMachineTombstoneBatch{
8147
>
VersionedTransition: currentVersionedTransition,
8148
>
StateMachineTombstones: tombstones,
8149
>
}
8150
>
// As an optimization, we only track the first empty tombstone batch. So we can know the start point of the tombstone batch
8151
>
if len(tombstones) > 0 || len(ms.executionInfo.SubStateMachineTombstoneBatches) == 0 {
8152
>
ms.executionInfo.SubStateMachineTombstoneBatches = append(ms.executionInfo.SubStateMachineTombstoneBatches, tombstoneBatch)
8153
>
}
8154
8156
>
ms.capTombstoneCount()
8157
}
8158