Skip to content

Commit 1071d95

Browse files
committed
inline
1 parent a055214 commit 1071d95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)