]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: show migration state names on cancel
authorSage Weil <sage@newdream.net>
Thu, 14 Apr 2011 02:08:05 +0000 (19:08 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 15 Apr 2011 04:17:43 +0000 (21:17 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/Migrator.cc

index 95e165d4a902364193597f4c64bfdbd05fd79932..7fea5d5950ef746d0a3bc1623af446d16aa1426a 100644 (file)
@@ -208,7 +208,8 @@ void Migrator::handle_mds_failure_or_stop(int who)
     if (export_peer[dir] == who ||
        p->second == EXPORT_DISCOVERING || p->second == EXPORT_FREEZING) { 
       // the guy i'm exporting to failed, or we're just freezing.
-      dout(10) << "cleaning up export state " << p->second << " of " << *dir << dendl;
+      dout(10) << "cleaning up export state (" << p->second << ")" << get_export_statename(p->second)
+              << " of " << *dir << dendl;
       
       switch (p->second) {
       case EXPORT_DISCOVERING:
@@ -339,6 +340,9 @@ void Migrator::handle_mds_failure_or_stop(int who)
     CDir *dir = mds->mdcache->get_dirfrag(df);
 
     if (import_peer[df] == who) {
+      dout(10) << "cleaning up export state (" << q->second << ")" << get_import_statename(q->second)
+              << " of " << *dir << dendl;
+
       switch (q->second) {
       case IMPORT_DISCOVERING:
        dout(10) << "import state=discovering : clearing state" << dendl;