From 4e3dbef512750a8d17aef4ab25fe1f3d02f6727c Mon Sep 17 00:00:00 2001 From: Nadav Har'El Date: Wed, 19 Aug 2015 16:46:34 +0300 Subject: [PATCH] repair: conform to coding style Use "_" prefix on class member "status". Signed-off-by: Nadav Har'El --- repair/repair.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/repair/repair.cc b/repair/repair.cc index c349d17453..73f6066b92 100644 --- a/repair/repair.cc +++ b/repair/repair.cc @@ -130,24 +130,24 @@ private: // Note that there are no "SUCCESSFUL" entries in the "status" map: // Successfully-finished repairs are those with id < next_repair_command // but aren't listed as running or failed the status map. - std::unordered_map status; + std::unordered_map _status; public: void start(int id) { - status[id] = repair_status::RUNNING; + _status[id] = repair_status::RUNNING; } void done(int id, bool succeeded) { if (succeeded) { - status.erase(id); + _status.erase(id); } else { - status[id] = repair_status::FAILED; + _status[id] = repair_status::FAILED; } } repair_status get(int id) { if (id >= next_repair_command.load(std::memory_order_relaxed)) { throw std::runtime_error(sprint("unknown repair id %d", id)); } - auto it = status.find(id); - if (it == status.end()) { + auto it = _status.find(id); + if (it == _status.end()) { return repair_status::SUCCESSFUL; } else { return it->second;