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)

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,
  • Loading branch information
NamanJain8 authored Jan 8, 2021
1 parent d42f881 commit 31164dd
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 @@ -575,6 +575,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 31164dd

Please sign in to comment.