Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Dec 27, 2010
  1. @jcomellas
Commits on Nov 18, 2010
  1. @sg2342

    fix worker activation

    sg2342 authored
  2. @sg2342
Commits on Oct 27, 2010
  1. @dizzyd @abecciu

    fixed unmatching ldr message in loop.

    dizzyd authored abecciu committed
Commits on Sep 15, 2010
  1. @abecciu

    untabify.

    abecciu authored
  2. @abecciu

    removed unused imports.

    abecciu authored
  3. @abecciu

    Merge branch 'master' of github.com:abecciu/gen_leader_revival

    abecciu authored
    Conflicts:
    	src/gen_leader.erl
Commits on Sep 14, 2010
  1. @abecciu
  2. @abecciu

    fixed types.

    abecciu authored
  3. @abecciu
  4. @abecciu

    fixed compiler warnings.

    abecciu authored
Commits on Aug 23, 2010
  1. @jlouis
  2. @jlouis

    Do not use a _ catch all wildcard for lists:member/2.

    jlouis authored
    The lists:member/2 function will return either true or false. Hence,
    if it does not return false, it MUST be true that is returned. It is
    bad style to catch-all this in general when the enumeration is
    bounded. Further extensions to the enumeration will, rather than fail,
    return something. Which can be something unwanted.
  3. @jlouis
  4. @jlouis

    Make some imported lists-functions explicit.

    jlouis authored
    The three methods from lists: keydelete/3, keysearch/3 and foreach/2
    are only referenced once in the file. By making them explicit, we
    simplify the readability of the code. Furthermore, this change makes the
    style in the file consistent. Several places prefixed calls explicitly
    with the lists module, while others did not.
    
    Change member/2 and foldl/3 from lists to explicit naming.
    
    This marks the complete removal of all -import() statements in the
    code.
  5. @jlouis

    Do not open up the error logger module.

    jlouis authored
    We only have two references to the error logger modules format
    function in all of the code. By making the error_logger explicit, we
    help the reader of the module to understand what is going on, rather
    than split his knowledge and kill his reader-locality.
  6. @jlouis
Commits on Aug 2, 2010
  1. @abecciu
  2. @abecciu

    fixed alive query function.

    abecciu authored
  3. @abecciu
  4. @abecciu

    fixed indentation.

    abecciu authored
  5. @abecciu

    removed old commented code.

    abecciu authored
  6. @abecciu
Commits on Jul 30, 2010
  1. @abecciu

    start monitoring candidates with higher priority right after completi…

    abecciu authored
    …ng the joining procedure.
Commits on Jul 27, 2010
  1. @abecciu
  2. @abecciu
Commits on Jul 25, 2010
  1. @abecciu
  2. @abecciu

    Revert "queue messages, unrelated to the leader election, received in…

    abecciu authored
    … the safe_loop to be called later when a new leader is elected."
    
    This reverts commit a39a432.
Commits on Jul 24, 2010
  1. @Vagabond
  2. @Vagabond
Commits on Jul 22, 2010
  1. @abecciu

    queue messages, unrelated to the leader election, received in the saf…

    abecciu authored
    …e_loop to be called later when a new leader is elected.
    
    Before this patch, any message received in the safe_loop that is not related to the leader election, makes the gen_leader process crash with a 'unmatched case clause' exception.
    So we now queue these messages, and handle them when the leader election process is concluded.
  2. @abecciu

    trigger handle_DOWN callback when a new leader is elected if the prev…

    abecciu authored
    …ious one is down.
    
    Since the handle_DOWN callback is only called in the leader, when the leader goes down, that callback is never called.
    So the way to solve this is to keep track of the previous leader so that when a new one is elected, the handke_DOWN callback can be called if the previous leader is still down.
  3. @abecciu

    fixed bug that makes candidates crash when a leader is elected.

    abecciu authored
    The candidates expect to receive the list of worker nodes along with the 'ldr' message. Since it wasn't being sent, they crashed with a "unmatched case clause" exception when a new leader was elected.
  4. @abecciu
Something went wrong with that request. Please try again.