Changeset 31880
- Timestamp:
- Jul 14, 2011, 2:23:51 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/diskbalance.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/diskbalance.pro
r31854 r31880 75 75 book listpage balanceControl control 76 76 echo "balance so_ids: $BALANCE_SO_ID_START $BALANCE_SO_ID_RANGE" 77 echo "targetting: $BALANCE_TARGET" 77 78 end 78 79 … … 81 82 echo "$N pages in book" 82 83 book listbook balancePending 84 end 85 86 macro set.balance.target 87 $BALANCE_TARGET = $1 83 88 end 84 89 … … 95 100 $BALANCE_LIMIT = 500 96 101 $BALANCE_OFFSET = 0 102 $BALANCE_TARGET = SOURCE 97 103 # Select Nebulous objects which should be shuffled 98 104 task balance.load … … 158 164 159 165 # locked list 160 task.exit default166 : task.exit default 161 167 showcommand failure 162 168 end … … 195 201 book getword balancePending $pageName key -var KEY 196 202 book getword balancePending $pageName source_name -var SOURCE 203 book getword balancePending $pageName source_host -var SOURCE_HOST 197 204 book getword balancePending $pageName destination_name -var DESTINATION 198 205 book getword balancePending $pageName destination_host -var DEST_HOST 199 206 # Fix this with multihost restriction when possible. 200 set.host.for.balance $DEST_HOST 207 if ("$target" == "DESTINATION") 208 set.host.for.balance $DEST_HOST 209 else 210 set.host.for.balance $SOURCE_HOST 211 end 212 201 213 202 214 stdout NULL
Note:
See TracChangeset
for help on using the changeset viewer.
