From b291c4ee2f32251674f218e5808e365a5fbae50b Mon Sep 17 00:00:00 2001 From: anurse Date: Wed, 23 Oct 2013 12:16:38 -0700 Subject: [PATCH 1/2] Added Gallery.HasWorker setting --- src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg | 2 ++ src/NuGetGallery.Cloud/ServiceDefinition.csdef | 1 + 2 files changed, 3 insertions(+) diff --git a/src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg b/src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg index c4b0196cd9..234394e5c4 100644 --- a/src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg +++ b/src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg @@ -22,12 +22,14 @@ + + diff --git a/src/NuGetGallery.Cloud/ServiceDefinition.csdef b/src/NuGetGallery.Cloud/ServiceDefinition.csdef index 3739048d44..aa774fead6 100644 --- a/src/NuGetGallery.Cloud/ServiceDefinition.csdef +++ b/src/NuGetGallery.Cloud/ServiceDefinition.csdef @@ -18,6 +18,7 @@ + From eb33ec4d16aa10c8900a023787945fc4b879c4ec Mon Sep 17 00:00:00 2001 From: Fabio Stawinski Date: Wed, 30 Oct 2013 15:03:57 -0200 Subject: [PATCH 2/2] Fix proposed in Issue #1627 Fixed the Trace.Activity for the line 101. Before is was accessing a null variable. --- .../Infrastructure/Lucene/LuceneIndexingService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NuGetGallery/Infrastructure/Lucene/LuceneIndexingService.cs b/src/NuGetGallery/Infrastructure/Lucene/LuceneIndexingService.cs index 929265ab2f..7508b68c80 100644 --- a/src/NuGetGallery/Infrastructure/Lucene/LuceneIndexingService.cs +++ b/src/NuGetGallery/Infrastructure/Lucene/LuceneIndexingService.cs @@ -98,13 +98,13 @@ public void UpdatePackage(Package package) } // Just update the provided package - using (Trace.Activity(String.Format(CultureInfo.CurrentCulture, "Updating Lucene Index for: {0} {1} [PackageKey:{2}]", id, version, key))) + using (Trace.Activity(String.Format(CultureInfo.CurrentCulture, "Updating Document: {0}", updateTerm.ToString()))) { EnsureIndexWriter(creatingIndex: false); if (package != null) { var indexEntity = new PackageIndexEntity(package); - Trace.Information(String.Format(CultureInfo.CurrentCulture, "Updating Document: {0}", updateTerm.ToString())); + Trace.Information(String.Format(CultureInfo.CurrentCulture, "Updating Lucene Index for: {0} {1} [PackageKey:{2}]", package.PackageRegistration.Id, package.Version, package.Key)); _indexWriter.UpdateDocument(updateTerm, indexEntity.ToDocument()); } else