Anton Kaliaev
b1cff0f9bf
[libs/autofile] create a Group ticker on Start
...
1) no need to stop the ticker in createTestGroup() method
2) now there is a symmetry - we start the ticker in OnStart(), we stop it
in OnStop()
Refs #2072
2018-08-03 11:34:58 +04:00
Anton Kaliaev
8ed99c2c13
exit from initSighupWatcher child goroutine
...
also, remove excessive log message
Refs #2072
2018-08-02 16:42:25 +04:00
Anton Kaliaev
b33f73eaf1
stop autofile and autogroup properly
...
NOTE: from the ticker#Stop documentation:
```
Stop does not close the channel, to prevent a read from the channel
succeeding incorrectly.
https://golang.org/src/time/tick.go?s=1318:1341#L35
```
Refs #2072
2018-08-02 16:33:34 +04:00
ValarDragon
a83eed104c
libs/cmn: Remove Tempfile, Tempdir, switch to ioutil variants ( #2114 )
...
Our Tempfile was just a wrapper on ioutil that panicked instead of error.
Our Tempdir was a less safe variant of ioutil's Tempdir.
2018-07-31 19:43:36 +02:00
Dev Ojha
f00b52b710
libs/autofile/group_test: Remove unnecessary logging ( #2100 )
...
Previously we logged `Testing for i <i>` for all i in [0,100).
This was unnecessary. This changes it to just log the value for i on
error messages, to reduce the unnecessary verbosity in log files.
2018-07-29 09:48:37 +04:00
Ethan Buchman
eccdce11c5
make linter happy
2018-07-02 12:06:43 -04:00
Ethan Buchman
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
Ethan Buchman
ae3bf81833
mv tmlibs files to libs dir
2018-07-01 22:36:03 -04:00