Skip to content
Snippets Groups Projects
  1. Feb 10, 2010
  2. Jan 27, 2010
  3. Jan 13, 2010
  4. Jan 04, 2010
  5. Dec 28, 2009
  6. Nov 25, 2009
  7. Oct 15, 2009
  8. Oct 13, 2009
  9. Oct 12, 2009
  10. Oct 02, 2009
  11. Oct 01, 2009
  12. Sep 30, 2009
  13. Sep 14, 2009
  14. Sep 11, 2009
  15. Jul 07, 2009
  16. Jan 29, 2009
    • Iustin Pop's avatar
      locking.LockSet: don't modify input arguments · 2a21bc88
      Iustin Pop authored
      Currently LockSet.acquire() sorts in place it's input argument if it's a
      list. This is not good, since callers might depend on a specific
      ordering of the input data, and this is a 'hidden' modification.
      
      We fix it by simply using a sorted copy, instead of sorting in place.
      
      Reviewed-by: ultrotter
      2a21bc88
    • Iustin Pop's avatar
      Re-wrap some lines to keep them under 80 chars · f12eadb3
      Iustin Pop authored
      This non-code change rewraps some lines in locking.py to keep them under
      80 chars.
      
      Reviewed-by: ultrotter
      f12eadb3
  17. Dec 11, 2008
    • Iustin Pop's avatar
      Fix epydoc format warnings · c41eea6e
      Iustin Pop authored
      This patch should fix all outstanding epydoc parsing errors; as such, we
      switch epydoc into verbose mode so that any new errors will be visible.
      
      Reviewed-by: imsnah
      c41eea6e
  18. Sep 11, 2008
    • Guido Trotter's avatar
      LockSet: forbid add() on a partially owned set · d2aff862
      Guido Trotter authored
      This patch bans add() on a half-acquired set. This behavior was
      previously possible, but created a deadlock if someone tried to acquire
      the set-lock in the meantime, and thus is now forbidden. The
      testAddRemove unit test is fixed for this new behavior, and includes a
      few more lines of testing and a new testConcurrentSetLockAdd function
      tests its behavior in the concurrent case.
      
      Reviewed-by: imsnah
      d2aff862
    • Guido Trotter's avatar
      Fix typo in a locking.py comment · ab62526c
      Guido Trotter authored
      Reviewed-by: imsnah
      ab62526c
    • Guido Trotter's avatar
      Add GanetiLockManager.is_owned function · d4f4b3e7
      Guido Trotter authored
      This is a public version of the private function we already had.
      We don't just change the previous version because it had lots of users
      in the library itself and in the testing code.
      
      Reviewed-by: imsnah
      d4f4b3e7
    • Guido Trotter's avatar
      Fix LockSet._names() to work with the set-lock · d4803c24
      Guido Trotter authored
      If the set-lock is acquired, currently, the _names function will fail on
      a double acquire of a non-recursive lock. This patch fixes the behavior,
      and some lines of code added to the testAcquireSetLock test check that
      this and other functioins behave properly.
      
      Reviewed-by: imsnah
      d4803c24
  19. Sep 05, 2008
    • Guido Trotter's avatar
      Add locking.ALL_SET constant and use it · e310b019
      Guido Trotter authored
      Rather than specifying None in needed_locks every time, with a nice
      comment saying to read what we mean rather than what we write, and that
      None actually means All, in our magic world, we'll hide this secret
      under the ALL_SET constant in the locking module, which has value, you
      guessed it, None. After that we'll substitute all usage in cmdlib.
      
      Some comments and examples have been fixed as well.
      
      Reviewed-by: iustinp
      e310b019
  20. Aug 18, 2008
    • Guido Trotter's avatar
      LockSet: allow lists with duplicate values · 34ca3914
      Guido Trotter authored
      If a list with a duplicate value is passed to a lockset what the code
      now does is to try to acquire the lock twice, generating a
      double-acquire exception in the SharedLock code. This is definitely an
      issue. In order to solve it we can either forbit double values in a list
      or just delete the duplicates. In this patch we go for the latter
      solution, removing any duplicate values when creating the acquire_list.
      
      Reviewed-by: imsnah
      34ca3914
Loading