diff options
author | Greg Farnum <greg@inktank.com> | 2013-01-17 00:56:05 +0100 |
---|---|---|
committer | Greg Farnum <greg@inktank.com> | 2013-02-05 22:29:06 +0100 |
commit | 49b0be58154a3d5d8970d8af5d11121f7f75c74a (patch) | |
tree | ffdc2db776a47a34e058db257611c756dc9e6b44 /src/mds/MDSTableServer.h | |
parent | mds: MDSCacheObjectInfo now uses modern encoding (diff) | |
download | ceph-49b0be58154a3d5d8970d8af5d11121f7f75c74a.tar.xz ceph-49b0be58154a3d5d8970d8af5d11121f7f75c74a.zip |
mds: rename MDSTableServer::_pending to mds_table_pending_t
And move it from MDSTableServer into mdstypes.cc, so we can use it
in ceph-dencoder more gracefully (coming up next!).
Signed-off-by: Greg Farnum <greg@inktank.com>
Diffstat (limited to 'src/mds/MDSTableServer.h')
-rw-r--r-- | src/mds/MDSTableServer.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/mds/MDSTableServer.h b/src/mds/MDSTableServer.h index 1467263d8b7..26cd5944844 100644 --- a/src/mds/MDSTableServer.h +++ b/src/mds/MDSTableServer.h @@ -22,31 +22,7 @@ class MMDSTableRequest; class MDSTableServer : public MDSTable { public: int table; - - /* mds's requesting any pending ops. child needs to encodig the corresponding - * pending mutation state in the table. - */ - struct _pending { - uint64_t reqid; - __s32 mds; - version_t tid; - void encode(bufferlist& bl) const { - __u8 struct_v = 1; - ::encode(struct_v, bl); - ::encode(reqid, bl); - ::encode(mds, bl); - ::encode(tid, bl); - } - void decode(bufferlist::iterator& bl) { - __u8 struct_v; - ::decode(struct_v, bl); - ::decode(reqid, bl); - ::decode(mds, bl); - ::decode(tid, bl); - } - }; - WRITE_CLASS_ENCODER(_pending) - map<version_t,_pending> pending_for_mds; // ** child should encode this! ** + map<version_t,mds_table_pending_t> pending_for_mds; // ** child should encode this! ** private: @@ -117,6 +93,5 @@ private: void finish_recovery(); void handle_mds_recovery(int who); }; -WRITE_CLASS_ENCODER(MDSTableServer::_pending) #endif |