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

mongo::PeriodicTask::Runner cleanup

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

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

      }

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

              Created:
              Updated:
              Resolved: