Previous commit was accidentally early and didn’t compile.

This commit is contained in:
Stephen Atherton 2017-11-01 01:22:08 -07:00
parent acf747c41f
commit c2fd27f294
1 changed files with 3 additions and 2 deletions

View File

@ -835,6 +835,7 @@ namespace fileBackup {
state Future<Void> truncate = file->truncate(truncateSize);
state Future<Void> sync = file->sync();
state Error err;
try {
Void _ = wait(truncate);
@ -842,7 +843,7 @@ namespace fileBackup {
if(e.code() == error_code_actor_cancelled)
throw;
state Error err = e;
err = e;
Void _ = wait(logError(cx, keyErrors, format("ERROR: Failed to write to file `%s' in container '%s' because of error %s", fileName.c_str(), backupContainer.c_str(), err.what())));
throw err;
}
@ -853,7 +854,7 @@ namespace fileBackup {
if(e.code() == error_code_actor_cancelled)
throw;
state Error err = e;
err = e;
Void _ = wait(logError(cx, keyErrors, format("WARNING: Cannot sync file `%s' in container '%s' because of error '%s'", fileName.c_str(), backupContainer.c_str(), err.what())));
throw err;
}