From 954ad5f4d2e57229805795d8694a9ee67fd74012 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 13 Feb 2013 14:46:38 -0800 Subject: mds: do not fill in the trace on a snap lookup. 5e761b4e1545a713e1409fa3bcca578071edff7d broke MDS snapshots by erroneously classifying LOOKUPSNAP the same as LOOKUP, but path_traverse does not fill in the dentry traces on snaps and clients don't expect to get them back. Signed-off-by: Greg Farnum --- src/mds/Server.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index ac51e60d0a9..ac77dbd0625 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -1159,10 +1159,9 @@ void Server::dispatch_client_request(MDRequest *mdr) // inodes ops. case CEPH_MDS_OP_LOOKUP: - case CEPH_MDS_OP_LOOKUPSNAP: handle_client_getattr(mdr, true); break; - + case CEPH_MDS_OP_LOOKUPSNAP: case CEPH_MDS_OP_GETATTR: handle_client_getattr(mdr, false); break; -- cgit v1.2.1