-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.0.4
-
Component/s: Internal Client
-
ALL
I'm testing your application using c++ mongoclient with valgrind and found, that the PeriodicTasks stored in PeriodicTask::Runner aren't destroyed during application shutdown. Off course I know the OS will do that for us, but just to make the code cleaner.
Possible fix:
PeriodicTask::Runner::~Runner() {
scoped_spinlock lk( _lock );
for ( size_t i=0; i<_tasks.size(); i++ )
}
- is depended on by
-
SERVER-8707 dbclient_rs_test threading issue
- Closed
-
SERVER-5520 Shutdown rewrite (tracking ticket)
- Closed