Skip to content

Commit

Permalink
Implementing reload in encrypted blob store (#12826) (#12853)
Browse files Browse the repository at this point in the history
(cherry picked from commit 208520e)

Signed-off-by: vikasvb90 <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 0646e90 commit 7274228
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package org.opensearch.common.blobstore;

import org.opensearch.cluster.metadata.CryptoMetadata;
import org.opensearch.cluster.metadata.RepositoryMetadata;
import org.opensearch.common.crypto.CryptoHandler;
import org.opensearch.crypto.CryptoHandlerRegistry;
import org.opensearch.crypto.CryptoRegistryException;
Expand Down Expand Up @@ -65,6 +66,15 @@ public BlobContainer blobContainer(BlobPath path) {
return new EncryptedBlobContainer<>(blobContainer, cryptoHandler);
}

/**
* Reoload blobstore metadata
* @param repositoryMetadata new repository metadata
*/
@Override
public void reload(RepositoryMetadata repositoryMetadata) {
blobStore.reload(repositoryMetadata);
}

/**
* Retrieves statistics about the BlobStore. Delegates the call to the underlying BlobStore's stats() method.
*
Expand Down

0 comments on commit 7274228

Please sign in to comment.