Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

fleetd:registry: improve Units() performance remove extra loops when fetching Jobs list from etcd #1515

Merged

Commits on Apr 18, 2016

  1. registry: remove extra loops when fetching Jobs list from etcd

    Improve Units() call when we fetch and process Jobs and Units from
    etcd. Remove extra unnecessary loops.
    
    We also change the code logic a little bit, since it was always storing
    the last matched name with the new Unit, but since Job keys do not expect to
    have two units with the same name, this should be ok.
    Djalal Harouni committed Apr 18, 2016
    Configuration menu
    Copy the full SHA
    0b6afc9 View commit details
    Browse the repository at this point in the history
  2. functional: add TestListUnitFilesOrder to assert the order of returne…

    …d units
    
    This test makes sure that it fleetd returned an ordered list of units
    from Units() call through list-unit-files command.
    Djalal Harouni committed Apr 18, 2016
    Configuration menu
    Copy the full SHA
    9963e8b View commit details
    Browse the repository at this point in the history