Skip to content

Commit cfda4d2

Browse files
committed
Fix comment
1 parent 69024e0 commit cfda4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ private static Metadata metadataForSnapshot(SnapshotsInProgress.Entry snapshot,
774774
private static ProjectMetadata projectForSnapshot(SnapshotsInProgress.Entry snapshot, ProjectMetadata project) {
775775
final ProjectMetadata.Builder builder;
776776
if (snapshot.includeGlobalState() == false) {
777-
// Remove global state from the cluster state
777+
// Create a new project state that only includes the index data
778778
builder = ProjectMetadata.builder(project.id());
779779
for (IndexId index : snapshot.indices().values()) {
780780
final IndexMetadata indexMetadata = project.index(index.getName());

0 commit comments

Comments
 (0)