remove LockFile

Summary: LockFile is unnecessary in unit test

Test Plan: env_basic_test.cc

Reviewers: andrewkr

Reviewed By: andrewkr

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D60285
main
Wanning Jiang 8 years ago
parent ff45d1b547
commit 95d96eeeb1
  1. 9
      util/env_basic_test.cc
  2. 2
      utilities/backupable/backupable_db.cc

@ -231,15 +231,6 @@ TEST_P(EnvBasicTestWithParam, ReadWrite) {
ASSERT_TRUE(rand_file->Read(1000, 5, &result, scratch).ok());
}
TEST_P(EnvBasicTestWithParam, Locks) {
FileLock* lock;
// only test they return success.
// TODO(andrewkr): verify functionality
ASSERT_OK(env_->LockFile(test_dir_ + "lock_file", &lock));
ASSERT_OK(env_->UnlockFile(lock));
}
TEST_P(EnvBasicTestWithParam, Misc) {
unique_ptr<WritableFile> writable_file;
ASSERT_OK(env_->NewWritableFile(test_dir_ + "/b", &writable_file, soptions_));

@ -560,7 +560,7 @@ Status BackupEngineImpl::Initialize() {
{
auto s = backup_env_->GetChildren(GetBackupMetaDir(), &backup_meta_files);
if (!s.ok()) {
return Status::NotFound("%s not found", GetBackupMetaDir());
return Status::NotFound(GetBackupMetaDir() + " is missing");
}
}
// create backups_ structure

Loading…
Cancel
Save