if read only backup engine can't find meta dirs, return NotFound() instead of IOError()

Summary: Read only backup engine return NotFound() on missing meta dir (for e2e test)

Test Plan: backupable_db_test

Reviewers: andrewkr

Reviewed By: andrewkr

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D60273
This commit is contained in:
Wanning Jiang 2016-07-01 11:36:33 -07:00
parent cb2476a0ca
commit ff45d1b547

View File

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