git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
745c451
)
*** empty log message ***
author
David E. Eisenstat
<deisenst@cs.princeton.edu>
Sat, 23 Jun 2007 13:11:39 +0000
(13:11 +0000)
committer
David E. Eisenstat
<deisenst@cs.princeton.edu>
Sat, 23 Jun 2007 13:11:39 +0000
(13:11 +0000)
accounts.py
patch
|
blob
|
history
diff --git
a/accounts.py
b/accounts.py
index
bf541fb
..
0a3509a
100644
(file)
--- a/
accounts.py
+++ b/
accounts.py
@@
-30,8
+30,8
@@
import tools
# When this variable is true, start after any ensure_created
# When this variable is true, start after any ensure_created
-
s
tartingup = False
-# Cumulative delay for starts when
s
tartingup is true
+
S
tartingup = False
+# Cumulative delay for starts when
S
tartingup is true
csd_lock = threading.Lock()
cumstartdelay = 0
csd_lock = threading.Lock()
cumstartdelay = 0
@@
-111,9
+111,9
@@
class Worker:
def ensure_created(self, rec):
"""Cause the account specified by <rec> to exist if it doesn't already."""
def ensure_created(self, rec):
"""Cause the account specified by <rec> to exist if it doesn't already."""
- self._q.put((self._ensure_created, rec.copy()))
+ self._q.put((self._ensure_created, rec.copy()
, Startingup
))
- def _ensure_created(self, rec):
+ def _ensure_created(self, rec
, startingup
):
curr_class = self._get_class()
next_class = type_acct_class[rec['type']]
if next_class != curr_class:
curr_class = self._get_class()
next_class = type_acct_class[rec['type']]
if next_class != curr_class: