UltraMonkey-L7 V3(multi-thread implementation)
Revision | 557b10ca546bfdf49ba115d8857e5554a812f9e1 (tree) |
---|---|
Time | 2014-02-26 09:49:49 |
Author | Michiro Hibari <l05102@shib...> |
Commiter | Michiro Hibari |
Fix ticket #33102 (fix memory reak).
@@ -793,14 +793,14 @@ void l7vsd::flush_virtual_service(error_code &err) | ||
793 | 793 | |
794 | 794 | // vs stop |
795 | 795 | (*itr)->stop(); |
796 | + // join virtualservice threads | |
797 | + (*itr)->vs_thread_ptr->join(); | |
798 | + vs_threads.remove_thread((*itr)->vs_thread_ptr.get()); | |
796 | 799 | // vs finalize |
797 | 800 | (*itr)->finalize(err); |
798 | 801 | } |
799 | 802 | } |
800 | 803 | |
801 | - // join virtualservice threads | |
802 | - vs_threads.join_all(); | |
803 | - | |
804 | 804 | // replication switch to slave |
805 | 805 | rep->switch_to_slave(); |
806 | 806 | } |