refactor: move packet queue to dumpfile_io.cpp
This commit is contained in:
@@ -594,7 +594,7 @@ void stellar_run(struct stellar *st)
|
||||
usleep(1000); // 1ms
|
||||
|
||||
// only available in dump file mode, automatically exits when all sessions have been released
|
||||
if (packet_io_wait_exit(runtime->packet_io) && all_session_have_freed(runtime, config))
|
||||
if (packet_io_isbreak(runtime->packet_io) && all_session_have_freed(runtime, config))
|
||||
{
|
||||
stellar_stat_output(runtime->stat); // flush stat
|
||||
STELLAR_LOG_STATE("all sessions have been released, notify threads to exit");
|
||||
|
||||
Reference in New Issue
Block a user