diff --git a/src/MfGames.Nitride/Entities/CreateOrUpdateIndex.cs b/src/MfGames.Nitride/Entities/CreateOrUpdateIndex.cs index 03b3e86..073b3d0 100644 --- a/src/MfGames.Nitride/Entities/CreateOrUpdateIndex.cs +++ b/src/MfGames.Nitride/Entities/CreateOrUpdateIndex.cs @@ -73,6 +73,7 @@ public partial class CreateOrUpdateIndex : OperationBase // find, we update with the existing entries. If we get to the end and // still have any left over, we create those pages. HashSet existing = new(); + int created = 0; foreach (Entity? entity in input) { @@ -102,6 +103,7 @@ public partial class CreateOrUpdateIndex : OperationBase { foreach (string key in scanned.Keys.Where(key => !existing.Contains(key))) { + created++; yield return this.CreateIndex(key, scanned[key]); } } @@ -110,7 +112,7 @@ public partial class CreateOrUpdateIndex : OperationBase this.logger.LogDebug( "Found {Old:N0} and created {New:N0} index pages for {Keys:N0} keys", existing.Count, - scanned.Count - existing.Count, + created, scanned.Keys.Count() ); }