Skip to content

Commit

Permalink
Remove unneeded vars from DPE
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Nov 28, 2022
1 parent 0ab52cf commit db68ba6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion CMake/Testing/Temporary/CTestCostData.txt

This file was deleted.

3 changes: 0 additions & 3 deletions CMake/Testing/Temporary/LastTest.log

This file was deleted.

2 changes: 1 addition & 1 deletion adapter/mapper/abstract_mapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct BlobPlacement {
return ss.str();
}

/** decode a BLOB name by splitting it into index, offset, size,
/** decode \a blob_name BLOB name by splitting it into index, offset, size,
and rank. */
void DecodeBlobNameLogEntry(const std::string &blob_name) {
auto str_split =
Expand Down
8 changes: 4 additions & 4 deletions data_stager/stagers/posix_stager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void PosixStager::StageIn(std::string path, PlacementPolicy dpe) {
} else if (stdfs::is_directory(path)) {
DirectoryStageIn(path, dpe);
} else {
LOG(ERROR) << "Unix stage in is neither a file or directory" << std::endl;
LOG(ERROR) << "Posix stage in is neither a file or directory" << std::endl;
}
}

Expand All @@ -48,10 +48,10 @@ void PosixStager::StageIn(std::string path, off_t off,
if (stdfs::is_regular_file(path)) {
FileStageIn(path, off, size, dpe);
} else if (stdfs::is_directory(path)) {
LOG(ERROR) << "Unix stage-in with offset " <<
LOG(ERROR) << "Posix stage-in with offset " <<
"is not supported for directories" << std::endl;
} else {
LOG(ERROR) << "Unix stage-in is neither a file or directory" << std::endl;
LOG(ERROR) << "Posix stage-in is neither a file or directory" << std::endl;
}
}

Expand All @@ -74,7 +74,7 @@ void PosixStager::StageOut(std::string path) {
} else if (stdfs::is_directory(path)) {
DirectoryStageOut(path);
} else {
LOG(ERROR) << "Unix stage-out is neither a file or directory" << std::endl;
LOG(ERROR) << "Posix stage-out is neither a file or directory" << std::endl;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/data_placement_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ using hermes::api::PlacementPolicy;
*/
class DPE {
protected:
bool require_bw_; /**< check if bandwidth is required */
PlacementPolicy policy_; /**< data placement policy */

public:
Expand Down
4 changes: 0 additions & 4 deletions src/dpe/round_robin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ Status RoundRobin::Placement(const std::vector<size_t> &blob_sizes,
if (ctx.policy != hermes::api::PlacementPolicy::kRoundRobin) {
return result;
}
if (bandwidths.size()) {
require_bw_ = false;
}

for (size_t i {0}; i < blob_sizes.size(); ++i) {
PlacementSchema schema;

Expand Down

0 comments on commit db68ba6

Please sign in to comment.