This is an automatically generated e-mail. To reply, visit: http://reviewboard-openlmi.rhcloud.com/r/1858/

Review request for OpenLMI Developers.
By Michal Minar.
Repository: openlmi-providers

Description

jobmanager: fix job registration

Any call to jobmgr_register_job_type() needs to be ignored once the job
manager is initialized. It's wrong to assume that this function won't
ever be called after the jobmgr_init() because there may be several
providers doing following sequence in single provider library during its
initialization:

  1. lmi_init()
  2. jobmgr_register_job_type()
  3. jobmgr_init()

Diffs

  • src/libs/jobmanager/job_manager.h (041096a7450f663b84c0cead5d649537aabf5224)
  • src/libs/jobmanager/job_manager.c (2d1f55b6d37490bd69e17a2504e02b9d5d5855bd)

View Diff