Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5773

mongo::PeriodicTask::Runner cleanup

    XMLWordPrintableJSON

Details

    • DevTools
    • ALL

    Description

      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++ )

      { delete _tasks[i]; _tasks[i] = 0; }

      }

      Attachments

        Issue Links

          Activity

            People

              backlog-server-devtools DO NOT USE - Backlog - Dev Tools
              dschneider David Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: