class DBEncryptionTest : public DBTestBase {
public:
DBEncryptionTest()
- : DBTestBase("/db_encryption_test", /*env_do_fsync=*/true) {}
+ : DBTestBase("db_encryption_test", /*env_do_fsync=*/true) {}
Env* GetTargetEnv() {
if (encrypted_env_ != nullptr) {
return (static_cast<EnvWrapper*>(encrypted_env_))->target();
Env* target = GetTargetEnv();
int hits = 0;
- for (auto it = fileNames.begin() ; it != fileNames.end(); ++it) {
- if ((*it == "..") || (*it == ".") || (*it == "LOCK")) {
+ for (auto it = fileNames.begin(); it != fileNames.end(); ++it) {
+ if (*it == "LOCK") {
continue;
}
auto filePath = dbname_ + "/" + *it;
ASSERT_OK(status);
if (data.ToString().find("foo567") != std::string::npos) {
- hits++;
- //std::cout << "Hit in " << filePath << "\n";
+ hits++;
+ // std::cout << "Hit in " << filePath << "\n";
}
if (data.ToString().find("v1.fetdq") != std::string::npos) {
- hits++;
- //std::cout << "Hit in " << filePath << "\n";
+ hits++;
+ // std::cout << "Hit in " << filePath << "\n";
}
if (data.ToString().find("bar123") != std::string::npos) {
- hits++;
- //std::cout << "Hit in " << filePath << "\n";
+ hits++;
+ // std::cout << "Hit in " << filePath << "\n";
}
if (data.ToString().find("v2.dfgkjdfghsd") != std::string::npos) {
- hits++;
- //std::cout << "Hit in " << filePath << "\n";
+ hits++;
+ // std::cout << "Hit in " << filePath << "\n";
}
if (data.ToString().find("dfgk") != std::string::npos) {
- hits++;
- //std::cout << "Hit in " << filePath << "\n";
+ hits++;
+ // std::cout << "Hit in " << filePath << "\n";
}
}
if (encrypted_env_) {
ASSERT_TRUE(data.empty());
}
-#endif // ROCKSDB_LITE
+#endif // ROCKSDB_LITE
} // namespace ROCKSDB_NAMESPACE