From: Piotr Dałek Date: Thu, 3 Mar 2016 10:22:57 +0000 (+0100) Subject: common/obj_bencher.cc: use more readable constant instead of magic number X-Git-Tag: v10.1.0~234^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cd4961581ac73152d8863dd9a0f25c08ed62a69c;p=ceph.git common/obj_bencher.cc: use more readable constant instead of magic number When clean_up_slow() fails, it returns "-5" which is equal to -EIO. Change it in source, so it's not confusing for someone who does not remember all error codes (functionality remains the same). Signed-off-by: Piotr Dałek --- diff --git a/src/common/obj_bencher.cc b/src/common/obj_bencher.cc index a79ce1bf7a0..4bf04325fef 100644 --- a/src/common/obj_bencher.cc +++ b/src/common/obj_bencher.cc @@ -1411,5 +1411,5 @@ int ObjBencher::clean_up_slow(const std::string& prefix, int concurrentios) { lock.Lock(); data.done = 1; lock.Unlock(); - return -5; + return -EIO; }