From 216a9e16f42e309abaff8568b2c6dba8226fa8b4 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 27 Feb 2015 14:21:16 -0800 Subject: [PATCH] Fix compile Summary: I was pretty sure I compiled this before landing, sorry :/ Test Plan: compiles Reviewers: sdong Reviewed By: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D34173 --- utilities/backupable/backupable_db.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/utilities/backupable/backupable_db.cc b/utilities/backupable/backupable_db.cc index 2a27f3321..d1d3b289c 100644 --- a/utilities/backupable/backupable_db.cc +++ b/utilities/backupable/backupable_db.cc @@ -1255,7 +1255,8 @@ Status BackupEngineImpl::BackupMeta::LoadFromFile( } if (line.empty()) { - return Status::Corruption("File checksum is missing in " + filename); + return Status::Corruption("File checksum is missing for " + filename + + " in " + meta_filename_); } uint32_t checksum_value = 0; @@ -1264,10 +1265,12 @@ Status BackupEngineImpl::BackupMeta::LoadFromFile( checksum_value = static_cast( strtoul(line.data(), nullptr, 10)); if (line != std::to_string(checksum_value)) { - return Status::Corruption("Invalid checksum value in " + filename); + return Status::Corruption("Invalid checksum value for " + filename + + " in " + meta_filename_); } } else { - return Status::Corruption("Unknown checksum type in " + filename); + return Status::Corruption("Unknown checksum type for " + filename + + " in " + meta_filename_); } files.emplace_back(new FileInfo(filename, size, checksum_value)); @@ -1275,7 +1278,8 @@ Status BackupEngineImpl::BackupMeta::LoadFromFile( if (s.ok() && data.size() > 0) { // file has to be read completely. if not, we count it as corruption - s = Status::Corruption("Tailing data in backup meta file in " + filename); + s = Status::Corruption("Tailing data in backup meta file in " + + meta_filename_); } if (s.ok()) {