Skip to content

Commit c18549b

Browse files
shook out some missing caller updates
1 parent f3138af commit c18549b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3Repository.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import org.elasticsearch.repositories.blobstore.MeteredBlobStoreRepository;
4343
import org.elasticsearch.snapshots.SnapshotId;
4444
import org.elasticsearch.snapshots.SnapshotsService;
45+
import org.elasticsearch.snapshots.SnapshotsServiceUtils;
4546
import org.elasticsearch.threadpool.Scheduler;
4647
import org.elasticsearch.threadpool.ThreadPool;
4748
import org.elasticsearch.xcontent.NamedXContentRegistry;
@@ -388,7 +389,7 @@ private static ByteSizeValue objectSizeLimit(ByteSizeValue chunkSize, ByteSizeVa
388389
@Override
389390
public void finalizeSnapshot(final FinalizeSnapshotContext finalizeSnapshotContext) {
390391
final FinalizeSnapshotContext wrappedFinalizeContext;
391-
if (SnapshotsService.useShardGenerations(finalizeSnapshotContext.repositoryMetaVersion()) == false) {
392+
if (SnapshotsServiceUtils.useShardGenerations(finalizeSnapshotContext.repositoryMetaVersion()) == false) {
392393
final ListenableFuture<Void> metadataDone = new ListenableFuture<>();
393394
wrappedFinalizeContext = new FinalizeSnapshotContext(
394395
finalizeSnapshotContext.serializeProjectMetadata(),

server/src/main/java/org/elasticsearch/repositories/RepositoryData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ public static RepositoryData snapshotsFromXContent(XContentParser parser, long g
909909
this snapshot repository format requires Elasticsearch version [%s] or later""", versionString));
910910
};
911911

912-
assert SnapshotsService.useShardGenerations(version);
912+
assert SnapshotsServiceUtils.useShardGenerations(version);
913913
}
914914
case UUID -> {
915915
XContentParserUtils.ensureExpectedToken(XContentParser.Token.VALUE_STRING, parser.nextToken(), parser);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ private void startNewShardSnapshots(String localNodeId, SnapshotsInProgress.Entr
398398
newSnapshotShards.put(shardId, snapshotStatus);
399399
final IndexId indexId = entry.indices().get(shardId.getIndexName());
400400
assert indexId != null;
401-
assert SnapshotsService.useShardGenerations(entry.version())
401+
assert SnapshotsServiceUtils.useShardGenerations(entry.version())
402402
|| ShardGenerations.fixShardGeneration(snapshotStatus.generation()) == null
403403
: "Found non-null, non-numeric shard generation ["
404404
+ snapshotStatus.generation()

0 commit comments

Comments
 (0)