From e024f2088cb6738c4e6589a91c5698ba95f38104 Mon Sep 17 00:00:00 2001 From: NamanJain8 Date: Tue, 3 Nov 2020 11:43:52 +0530 Subject: [PATCH] use encrypted tmpDBs for index building if encryption is enabled --- posting/index.go | 1 + 1 file changed, 1 insertion(+) diff --git a/posting/index.go b/posting/index.go index 3c5d71e650d..3937c828927 100644 --- a/posting/index.go +++ b/posting/index.go @@ -613,6 +613,7 @@ func (r *rebuilder) Run(ctx context.Context) error { WithNumVersionsToKeep(math.MaxInt32). WithLogger(&x.ToGlog{}). WithCompression(options.None). + WithEncryptionKey(x.WorkerConfig.EncryptionKey). WithLogRotatesToFlush(10) // Set cache if we have encryption.