]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/newstore: drop unused FragmentHandle
authorSage Weil <sage@redhat.com>
Fri, 10 Apr 2015 23:33:00 +0000 (16:33 -0700)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:37 +0000 (13:39 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/newstore/NewStore.h

index f2ba13745053a88115b48d28be55e353f56f8b2d..b8f83f4357f4f60b8715c779350aca164405fc39 100644 (file)
@@ -36,23 +36,6 @@ class NewStore : public ObjectStore {
   // types
 public:
 
-  struct FragmentHandle {
-    int fd;
-    FragmentHandle() : fd(-1) {}
-    FragmentHandle(int f) : fd(f) {}
-    ~FragmentHandle() {
-      if (fd >= 0)
-       ::close(fd);
-    }
-    int fsync() {
-      return ::fsync(fd);
-    }
-    int fdatasync() {
-      return ::fdatasync(fd);
-    }
-  };
-  typedef ceph::shared_ptr<FragmentHandle> FragmentHandleRef;
-
   class TransContext;
 
   /// an in-memory object