Skip to content

Commit

Permalink
Implementing reload in encrypted blob store (opensearch-project#12826)
Browse files Browse the repository at this point in the history
Signed-off-by: vikasvb90 <[email protected]>
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
vikasvb90 authored and shiv0408 committed Apr 25, 2024
1 parent 00ad402 commit 9847b07
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 9847b07

Please sign in to comment.