Skip to content

Commit

Permalink
Add default implementation to new finalizeSnapshot() in Repository (#…
Browse files Browse the repository at this point in the history
…16128)

Signed-off-by: Sachin Kale <sachinpkale@gmail.com>
  • Loading branch information
sachinpkale authored Sep 30, 2024
1 parent 0b96565 commit 9a5c7b2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void finalizeSnapshot(
* @param repositoryUpdatePriority priority for the cluster state update task
* @param listener listener to be invoked with the new {@link RepositoryData} after completing the snapshot
*/
void finalizeSnapshot(
default void finalizeSnapshot(
ShardGenerations shardGenerations,
long repositoryStateId,
Metadata clusterMetadata,
Expand All @@ -189,7 +189,9 @@ void finalizeSnapshot(
Function<ClusterState, ClusterState> stateTransformer,
Priority repositoryUpdatePriority,
ActionListener<RepositoryData> listener
);
) {
throw new UnsupportedOperationException();
}

/**
* Deletes snapshots
Expand Down

0 comments on commit 9a5c7b2

Please sign in to comment.