]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove the unused MDS_TRAVERSE_FAIL flag.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Mon, 22 Aug 2011 22:56:35 +0000 (15:56 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Mon, 22 Aug 2011 23:00:35 +0000 (16:00 -0700)
This isn't used, and judging by the comments was a horrible lie.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mds/MDCache.cc
src/mds/mdstypes.h

index 2de901553d9ba9556ec5272179e2dda4a7189398..c9cb22ad7a88385442090adfdb577d958b363127 100644 (file)
@@ -6852,8 +6852,6 @@ int MDCache::path_traverse(MDRequest *mdr, Message *req, Context *fin,     // wh
        if (mds->logger) mds->logger->inc(l_mds_tfw);
        return 2;
       }    
-      if (onfail == MDS_TRAVERSE_FAIL)
-        return -ENOENT;  // not necessarily exactly true....
     }
     
     assert(0);  // i shouldn't get here
index b607ee11485039a165fdafd21d7acf0144d19837..70f029740d04bc94d7c69dde41fde953626fe505 100644 (file)
@@ -61,7 +61,6 @@ using namespace std;
 #define MDS_TRAVERSE_FORWARD       1
 #define MDS_TRAVERSE_DISCOVER      2    // skips permissions checks etc.
 #define MDS_TRAVERSE_DISCOVERXLOCK 3    // succeeds on (foreign?) null, xlocked dentries.
-#define MDS_TRAVERSE_FAIL          4
 
 
 extern long g_num_ino, g_num_dir, g_num_dn, g_num_cap;