File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
server/src/main/java/org/elasticsearch/repositories/blobstore Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1749,11 +1749,10 @@ int sizeInBytes() {
17491749 public void finalizeSnapshot (final FinalizeSnapshotContext finalizeSnapshotContext ) {
17501750 assert ThreadPool .assertCurrentThreadPool (ThreadPool .Names .SNAPSHOT );
17511751 final long repositoryStateId = finalizeSnapshotContext .repositoryStateId ();
1752- final ShardGenerations shardGenerations = finalizeSnapshotContext .updatedShardGenerations ().liveIndices ();
17531752 final SnapshotInfo snapshotInfo = finalizeSnapshotContext .snapshotInfo ();
17541753 assert repositoryStateId > RepositoryData .UNKNOWN_REPO_GEN
17551754 : "Must finalize based on a valid repository generation but received [" + repositoryStateId + "]" ;
1756- final Collection <IndexId > indices = shardGenerations .indices ();
1755+ final Collection <IndexId > indices = finalizeSnapshotContext . updatedShardGenerations (). liveIndices () .indices ();
17571756 final SnapshotId snapshotId = snapshotInfo .snapshotId ();
17581757 // Once we are done writing the updated index-N blob we remove the now unreferenced index-${uuid} blobs in each shard
17591758 // directory if all nodes are at least at version SnapshotsService#SHARD_GEN_IN_REPO_DATA_VERSION
You can’t perform that action at this time.
0 commit comments