mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 20:07:51 +00:00
Add extra logging
This commit is contained in:
parent
b22760a5a0
commit
0a480f8511
1 changed files with 2 additions and 0 deletions
|
|
@ -90,9 +90,11 @@ func (self *Nexter) countloop(ch chan uint64, id int, client *etcd.Client) {
|
|||
}
|
||||
_, err = client.CompareAndSwap(path, strconv.FormatUint(end, 10), 0, strconv.FormatUint(start, 10), 0)
|
||||
if err != nil {
|
||||
log.Println("CAS failure", path, start, end)
|
||||
continue
|
||||
}
|
||||
self.stats.Gauge("nexter."+strconv.Itoa(id), int64(end), 1.0)
|
||||
log.Println("Allocated", id, start, end)
|
||||
for c := start; c < end; c += 1 {
|
||||
ch <- c
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue