diff --git a/db/compaction_job.cc b/db/compaction_job.cc index 23d4248d2..4702fc802 100644 --- a/db/compaction_job.cc +++ b/db/compaction_job.cc @@ -1186,7 +1186,7 @@ Status CompactionJob::FinishCompactionOutputFile( if (sfm->IsMaxAllowedSpaceReached()) { // TODO(ajkr): should we return OK() if max space was reached by the final // compaction output file (similarly to how flush works when full)? - s = Status::IOError("Max allowed space was reached"); + s = Status::NoSpace("Max allowed space was reached"); TEST_SYNC_POINT( "CompactionJob::FinishCompactionOutputFile:" "MaxAllowedSpaceReached"); diff --git a/db/db_impl_compaction_flush.cc b/db/db_impl_compaction_flush.cc index 92104476c..3a243263d 100644 --- a/db/db_impl_compaction_flush.cc +++ b/db/db_impl_compaction_flush.cc @@ -172,7 +172,7 @@ Status DBImpl::FlushMemTableToOutputFile( immutable_db_options_.db_paths[0].path, file_meta.fd.GetNumber()); sfm->OnAddFile(file_path); if (sfm->IsMaxAllowedSpaceReached() && bg_error_.ok()) { - Status new_bg_error = Status::IOError("Max allowed space was reached"); + Status new_bg_error = Status::NoSpace("Max allowed space was reached"); TEST_SYNC_POINT_CALLBACK( "DBImpl::FlushMemTableToOutputFile:MaxAllowedSpaceReached", &new_bg_error);