summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/encryption_hooks.cpp
diff options
context:
space:
mode:
authorVarun Ravichandran <varun.ravichandran@mongodb.com>2021-01-08 02:18:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-20 19:28:03 +0000
commit45a54bbac81ff1146f307afb2d04c94c694a1163 (patch)
tree7aae292c66cab6bedf43d89d6db7f07122788cce /src/mongo/db/storage/encryption_hooks.cpp
parent6308db5c83a3e95f4532c63df8b635b8090036ae (diff)
downloadmongo-45a54bbac81ff1146f307afb2d04c94c694a1163.tar.gz
SERVER-50644, SERVER-50479: Add resumable index build support for ESE by using persistent key for Sorter temp file encryption
Diffstat (limited to 'src/mongo/db/storage/encryption_hooks.cpp')
-rw-r--r--src/mongo/db/storage/encryption_hooks.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mongo/db/storage/encryption_hooks.cpp b/src/mongo/db/storage/encryption_hooks.cpp
index eac49821a2c..786f963e9e1 100644
--- a/src/mongo/db/storage/encryption_hooks.cpp
+++ b/src/mongo/db/storage/encryption_hooks.cpp
@@ -75,14 +75,22 @@ boost::filesystem::path EncryptionHooks::getProtectedPathSuffix() {
return "";
}
-Status EncryptionHooks::protectTmpData(
- const uint8_t* in, size_t inLen, uint8_t* out, size_t outLen, size_t* resultLen) {
+Status EncryptionHooks::protectTmpData(const uint8_t* in,
+ size_t inlen,
+ uint8_t* out,
+ size_t outLen,
+ size_t* resultLen,
+ boost::optional<std::string> dbName) {
return Status(ErrorCodes::InternalError,
"Encryption hooks must be enabled to use preprocessTmpData.");
}
-Status EncryptionHooks::unprotectTmpData(
- const uint8_t* in, size_t inLen, uint8_t* out, size_t outLen, size_t* resultLen) {
+Status EncryptionHooks::unprotectTmpData(const uint8_t* in,
+ size_t inLen,
+ uint8_t* out,
+ size_t outLen,
+ size_t* resultLen,
+ boost::optional<std::string> dbName) {
return Status(ErrorCodes::InternalError,
"Encryption hooks must be enabled to use postprocessTmpData.");
}