From ff45d1b547bc64fc5eab17bebde2549fd3210d2a Mon Sep 17 00:00:00 2001 From: Wanning Jiang Date: Fri, 1 Jul 2016 11:36:33 -0700 Subject: [PATCH] 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 --- utilities/backupable/backupable_db.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/backupable/backupable_db.cc b/utilities/backupable/backupable_db.cc index 33c6874d4..2ce1e0490 100644 --- a/utilities/backupable/backupable_db.cc +++ b/utilities/backupable/backupable_db.cc @@ -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