summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuan Kai Chiu <big.chiu@bigtera.com>2013-04-18 14:43:26 +0800
committerGreg Farnum <greg@inktank.com>2013-04-18 10:38:21 -0700
commit87634d882fda80c4a2e3705c83a38bdfd613763f (patch)
tree617b72c9d33ff2612732002a473ba5cb2ad4dff4
parentf379ce37bfdcb3670f52ef47c02787f82e50e612 (diff)
downloadceph-87634d882fda80c4a2e3705c83a38bdfd613763f.tar.gz
mds: journal the projected root xattrs in add_root()
In EMetaBlob::add_root(), we should log the projected root xattrs instead of original ones to reflect xattr changes. Signed-off-by: Kuan Kai Chiu <big.chiu@bigtera.com> Reviewed-by: Greg Farnum <greg@inktank.com>
-rw-r--r--src/mds/events/EMetaBlob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds/events/EMetaBlob.h b/src/mds/events/EMetaBlob.h
index 7065460945f..439bd78bc8f 100644
--- a/src/mds/events/EMetaBlob.h
+++ b/src/mds/events/EMetaBlob.h
@@ -468,7 +468,7 @@ private:
if (!pi) pi = in->get_projected_inode();
if (!pdft) pdft = &in->dirfragtree;
- if (!px) px = &in->xattrs;
+ if (!px) px = in->get_projected_xattrs();
bufferlist snapbl;
if (psnapbl)