Revision 1302425d migration.c

b/migration.c
58 58
    const char *p;
59 59
    int detach = qdict_get_int(qdict, "detach");
60 60
    const char *uri = qdict_get_str(qdict, "uri");
61
    
61

  
62
    if (current_migration &&
63
        current_migration->get_status(current_migration) == MIG_STATE_ACTIVE) {
64
        monitor_printf(mon, "migration already in progress\n");
65
        return;
66
    }
67

  
62 68
    if (strstart(uri, "tcp:", &p))
63 69
        s = tcp_start_outgoing_migration(p, max_throttle, detach, 
64 70
                                         (int)qdict_get_int(qdict, "blk"), 

Also available in: Unified diff