Skip to content

Commit

Permalink
fix(indexing): use encrypted tmpDBs for index building if encryption …
Browse files Browse the repository at this point in the history
…is enabled (#6828) (#7343)

If the encryption is enabled for cluster, we should enable encryption for temporary DBs used for reindexing.This PR adds that encryption option for temporary DBs,

(cherry picked from commit 31164dd)
  • Loading branch information
NamanJain8 authored Jan 22, 2021
1 parent f6caa80 commit 7323d3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions posting/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ func (r *rebuilder) Run(ctx context.Context) error {
WithNumVersionsToKeep(math.MaxInt32).
WithLogger(&x.ToGlog{}).
WithCompression(options.None).
WithEncryptionKey(x.WorkerConfig.EncryptionKey).
WithLoggingLevel(badger.WARNING)

// Set cache if we have encryption.
Expand Down

0 comments on commit 7323d3f

Please sign in to comment.