mongo::PeriodicTask::Runner cleanup

XMLWordPrintableJSON

    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              DO NOT USE - Backlog - Dev Tools
              Reporter:
              David Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: