mirror of
https://github.com/ceph/ceph
synced 2025-04-19 13:55:54 +00:00
msgr: remove dead kill_after code bits
This commit is contained in:
parent
71cfe307db
commit
4fdb6ce34a
@ -2082,15 +2082,6 @@ int SimpleMessenger::bind(int64_t force_nonce)
|
|||||||
return accepter.bind(force_nonce);
|
return accepter.bind(force_nonce);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class C_Die : public Context {
|
|
||||||
public:
|
|
||||||
void finish(int) {
|
|
||||||
cerr << "die" << std::endl;
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
static void write_pid_file(int pid)
|
static void write_pid_file(int pid)
|
||||||
{
|
{
|
||||||
if (!g_conf.pid_file)
|
if (!g_conf.pid_file)
|
||||||
@ -2180,10 +2171,6 @@ int SimpleMessenger::start(bool nodaemon)
|
|||||||
write_pid_file(getpid());
|
write_pid_file(getpid());
|
||||||
}
|
}
|
||||||
|
|
||||||
// some debug hackery?
|
|
||||||
//if (g_conf.kill_after)
|
|
||||||
//qg_timer.add_event_after(g_conf.kill_after, new C_Die);
|
|
||||||
|
|
||||||
// go!
|
// go!
|
||||||
if (did_bind)
|
if (did_bind)
|
||||||
accepter.start();
|
accepter.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user