[server/tsmon] set task_num with 0

This is a bug fix for crrev.com/c/3290575.
enableTsMon() sets task_num with -1. Thus, ensureTaskNumAndFlush
should still set task_num = 0 even if TaskNumAllocator == nil.

There is nothing wrong with -1 in task_num, but it just looks
bad for no reason.

Change-Id: I4a86a4ee727ba8ca0198f122abb9214819437c63
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/3298750
Auto-Submit: Scott Lee <ddoman@chromium.org>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Vadim Shtayura <vadimsh@chromium.org>
1 file changed
tree: bf92b6eff1f019175d796c3cd3b9cae4c151d307
  1. appengine/
  2. auth/
  3. auth_service/
  4. buildbucket/
  5. casviewer/
  6. cipd/
  7. client/
  8. cmdrunner/
  9. common/
  10. config/
  11. cv/
  12. dm/
  13. examples/
  14. gae/
  15. gce/
  16. grpc/
  17. hacks/
  18. hardcoded/
  19. led/
  20. logdog/
  21. luci_notify/
  22. lucicfg/
  23. lucictx/
  24. luciexe/
  25. machine-db/
  26. mailer/
  27. milo/
  28. mmutex/
  29. resultdb/
  30. scheduler/
  31. scripts/
  32. server/
  33. starlark/
  34. swarming/
  35. tokenserver/
  36. tools/
  37. tumble/
  38. vpython/
  39. web/
  40. .gitallowed
  41. .gitattributes
  42. .golangci.yml
  43. AUTHORS
  44. codereview.settings
  45. CONTRIBUTING.md
  46. CONTRIBUTORS
  47. go.mod
  48. go.sum
  49. LICENSE
  50. OWNERS
  51. PRESUBMIT.py
  52. README.md
  53. tools.go
  54. WATCHLISTS
README.md

luci-go: LUCI services and tools in Go

GoDoc

Installing

LUCI Go code is meant to be worked on from an Chromium infra.git checkout, which enforces packages versions and Go toolchain version. First get fetch via depot_tools.git then run:

fetch infra
cd infra/go
eval `./env.py`
cd src/go.chromium.org/luci

Contributing

Contributing uses the same flow as Chromium contributions.