Skip to content

Commit

Permalink
mds: include inline data in lock messages
Browse files Browse the repository at this point in the history
Signed-off-by: Yan, Zheng <[email protected]>
  • Loading branch information
Yan, Zheng committed Mar 15, 2014
1 parent 5b3422a commit 9e21840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/mds/CInode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,8 @@ void CInode::encode_lock_state(int type, bufferlist& bl)
::encode(inode.layout, bl);
::encode(inode.size, bl);
::encode(inode.client_ranges, bl);
::encode(inode.inline_data, bl);
::encode(inode.inline_version, bl);
}
} else {
bool dirty = filelock.is_dirty();
Expand Down Expand Up @@ -1424,6 +1426,8 @@ void CInode::decode_lock_state(int type, bufferlist& bl)
::decode(inode.layout, p);
::decode(inode.size, p);
::decode(inode.client_ranges, p);
::decode(inode.inline_data, p);
::decode(inode.inline_version, p);
}
} else {
bool replica_dirty;
Expand Down
2 changes: 1 addition & 1 deletion src/mds/MDS.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "SessionMap.h"


#define CEPH_MDS_PROTOCOL 21 /* cluster internal */
#define CEPH_MDS_PROTOCOL 22 /* cluster internal */


enum {
Expand Down

0 comments on commit 9e21840

Please sign in to comment.