-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Atomize Rename operation when encryption is enabled (#224) #225
Conversation
Signed-off-by: Xintao <hunterlxt@live.com>
@@ -24,6 +24,25 @@ namespace rocksdb { | |||
static const std::string kRocksDbTFileExt = "sst"; | |||
static const std::string kLevelDbTFileExt = "ldb"; | |||
static const std::string kRocksDBBlobFileExt = "blob"; | |||
static const std::string kUnencryptedTempFileNameSuffix = "dbtmp.plain"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static const std::string kUnencryptedTempFileNameSuffix = "dbtmp.plain"; | |
static const std::string kUnencryptedTempFileNameSuffix = kTempFileNameSuffix + ".plain"; |
and move this nearby kTempFileNameSuffix
?
Status s = target()->LinkFile(src_fname, dst_fname); | ||
return s; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Status s = target()->LinkFile(src_fname, dst_fname); | |
return s; | |
return target()->LinkFile(src_fname, dst_fname); |
@tabokie this is a cherry-pick. Let's keep it as is. |
@yiwu-arbug Please mention the cherry-picked PR in the description |
Cherry-picking tikv/rocksdb#224 (tikv/rocksdb#225) Signed-off-by: Yi Wu <yiwu@pingcap.com>
Cherry-picking #224.
#222 used
LinkFile
instead ofRenameFile
api of key manager. ButLinkFile
needs check the dst file information, inRenameFile
logic, we don't care about that. So just skip encryption for current file.Signed-off-by: Xintao hunterlxt@live.com