]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Migrator: use a null ref instead of NULL when calling into path_traverse
authorGreg Farnum <greg@inktank.com>
Wed, 12 Mar 2014 20:43:05 +0000 (13:43 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 4 Apr 2014 17:40:52 +0000 (10:40 -0700)
Signed-off-by: Greg Farnum <greg@inktank.com>
src/mds/Migrator.cc

index 969cb8b050e673c77fdd75a6390a9a3fe41bd9ba..b0cb41849cbba7eaa1c7daf8646c5d8ea5445709 100644 (file)
@@ -1871,7 +1871,8 @@ void Migrator::handle_export_discover(MExportDirDiscover *m)
     // must discover it!
     filepath fpath(m->get_path());
     vector<CDentry*> trace;
-    int r = cache->path_traverse(NULL, m, NULL, fpath, &trace, NULL, MDS_TRAVERSE_DISCOVER);
+    MDRequestRef null_ref;
+    int r = cache->path_traverse(null_ref, m, NULL, fpath, &trace, NULL, MDS_TRAVERSE_DISCOVER);
     if (r > 0) return;
     if (r < 0) {
       dout(7) << "handle_export_discover_2 failed to discover or not dir " << m->get_path() << ", NAK" << dendl;