Skip to content

Commit

Permalink
Implementing reload in encrypted blob store
Browse files Browse the repository at this point in the history
Signed-off-by: vikasvb90 <[email protected]>
  • Loading branch information
vikasvb90 committed Mar 21, 2024
1 parent 90a815e commit 8e81a2c
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 8e81a2c

Please sign in to comment.