From 6ff1f7bb6379536fa01198a75b30b20c13d33715 Mon Sep 17 00:00:00 2001 From: sageweil Date: Sun, 19 Nov 2006 17:37:45 +0000 Subject: [PATCH] reorder class elements git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@958 29311d96-e01e-0410-9327-a35deaab8ce9 --- ceph/include/types.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ceph/include/types.h b/ceph/include/types.h index 09a34ad2e6f5c..492b55419c1fe 100644 --- a/ceph/include/types.h +++ b/ceph/include/types.h @@ -393,13 +393,15 @@ public: class ObjectExtent { public: object_t oid; // object id - pg_t pgid; off_t start; // in object size_t length; // in object + + pg_t pgid; // where to find the object + map buffer_extents; // off -> len. extents in buffer being mapped (may be fragmented bc of striping!) - ObjectExtent() : pgid(0), start(0), length(0) {} - ObjectExtent(object_t o, off_t s=0, size_t l=0) : oid(o), pgid(0), start(s), length(l) { } + ObjectExtent() : start(0), length(0), pgid(0) {} + ObjectExtent(object_t o, off_t s=0, size_t l=0) : oid(o), start(s), length(l), pgid(0) { } }; inline ostream& operator<<(ostream& out, ObjectExtent &ex) -- 2.39.5