]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/obj_bencher.cc: use more readable constant instead of magic number
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 3 Mar 2016 10:22:57 +0000 (11:22 +0100)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 3 Mar 2016 10:22:57 +0000 (11:22 +0100)
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 <piotr.dalek@ts.fujitsu.com>
src/common/obj_bencher.cc

index a79ce1bf7a0815b5cc5e0fdce19ee3992dff5f58..4bf04325fefe5b79ebb78635cda3469b26ddf728 100644 (file)
@@ -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;
 }