]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/LFNIndex: FDCloser helper
authorSage Weil <sage@redhat.com>
Mon, 21 Jul 2014 20:43:42 +0000 (13:43 -0700)
committerSage Weil <sage@redhat.com>
Wed, 23 Jul 2014 21:48:14 +0000 (14:48 -0700)
commita320c260a9e088ab0a4ea3d5298c06a2d077de37
treec370d7b89cd44168543329c2ad057d4bb508a21a
parentb2cdfce6461b81f4926602a8c63b54aa92684e6c
os/LFNIndex: FDCloser helper

Add a helper to close fd's when we leave scope.  This is important when
injecting failures by throwing exceptions.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/LFNIndex.cc