Skip to content

Commit

Permalink
make SetKeys public since now rwlock protected. (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: matthewvon <[email protected]>
  • Loading branch information
matthewvon and matthewvon authored Aug 28, 2020
1 parent 6acb712 commit c46e40d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/rocksdb/env_encrypt2.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ class EncryptedEnvV2 : public EnvWrapper {

EncryptedEnvV2(Env* base_env, ReadKeys encrypt_read, WriteKey encrypt_write);

void SetKeys(ReadKeys encrypt_read, WriteKey encrypt_write);

bool IsWriteEncrypted() const;

// NewSequentialFile opens a file for sequential reading.
Expand Down Expand Up @@ -314,10 +316,6 @@ class EncryptedEnvV2 : public EnvWrapper {
protected:
void init();

// following is not thread safe, intended for constuction
// and unit test only
void SetKeys(ReadKeys encrypt_read, WriteKey encrypt_write);

template <class TypeFile>
Status ReadSeqEncryptionPrefix(
TypeFile* f, std::shared_ptr<const CTREncryptionProviderV2>& provider,
Expand Down

0 comments on commit c46e40d

Please sign in to comment.