]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
bench/dumb_backend.cc: check return value of posix_fadvise()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 28 May 2013 12:26:29 +0000 (14:26 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 31 May 2013 17:15:22 +0000 (19:15 +0200)
commita7a0425de7b1933fc53f1f5f3f3309adebd892bb
treea22fb0b83552db8c2ffb02f27ac0b035a658722d
parent679775ae2d5bda73e4b973cf2dcebce6df33dca4
bench/dumb_backend.cc: check return value of posix_fadvise()

CID 743396 (#1 of 1): Unchecked return value from library (CHECKED_RETURN)
  check_return: Calling function "posix_fadvise(fd, offset, bl->length(), 4)"
   without checking return value. This library function may fail and return
   an error code.
  unchecked_value: No check of the return value of
   "posix_fadvise(fd, offset, bl->length(), 4)".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/bench/dumb_backend.cc