Anton Kaliaev
3e1516b624
linters: enable stylecheck ( #4153 )
Refs #3262
5 years ago
zjubfd
2233dd45bd
libs: remove useless code in group ( #3504 )
* lib: remove useless code in group
* update change log
* Update CHANGELOG_PENDING.md
Co-Authored-By: guagualvcha <baifudong@lancai.cn>
6 years ago
Anton Kaliaev
ec9bff5234
rename WAL#Flush to WAL#FlushAndSync ( #3345 )
* rename WAL#Flush to WAL#FlushAndSync
- rename auto#Flush to auto#FlushAndSync
- cleanup WAL interface to not leak implementation details!
* remove Group()
* add WALReader interface and return it in SearchForEndHeight()
- add interface assertions
Refs #3337
* replace WALReader with io.ReadCloser
6 years ago
goolAdapter
110b07fb3f
libs: Call Flush() before rename #2428 ( #2439 )
* fix Group.RotateFile need call Flush() before rename. #2428
* fix some review issue. #2428
refactor Group's config: replace setting member with initial option
* fix a handwriting mistake
* fix a time window error between rename and write.
* fix a syntax mistake.
* change option name Get_ to With_
* fix review issue
* fix review issue
6 years ago
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
6 years ago
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
6 years ago
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.
6 years ago
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
6 years ago
Zach Ramsay
d02c5d1e30
detele everything
6 years ago
Ethan Buchman
d55243f0e6
fix import paths
6 years ago
Ethan Buchman
ae3bf81833
mv tmlibs files to libs dir
6 years ago
Anton Kaliaev
f0c44d1bd0
[autofile] include call to group#Close in tests
7 years ago
Thomas Corbière
ee67e34519
Fix lint errors ( #190 )
* use increment and decrement operators.
* remove unnecessary else branches.
* fix receiver names.
* remove omittable code.
* fix dot imports.
7 years ago
Anton Kaliaev
d8dd497069
fix metalinter errors
7 years ago
Anton Kaliaev
668698584d
[autofile] test GroupReader more extensively (Refs #69 )
7 years ago
Anton Kaliaev
103fee6192
add tests for autofile group Write, reader#Read
7 years ago
Zach Ramsay
3c57c24921
linting: next round of fixes
7 years ago
Zach Ramsay
d6e03d2368
linting: add to Makefile & do some fixes
7 years ago
Ethan Buchman
2f8551d3b6
go-common -> tmlibs
8 years ago
Ethan Buchman
900be74e8f
update import paths
8 years ago
Ethan Buchman
a893bb119b
merge go-autofile
8 years ago
Jae Kwon
a528af55d3
Group is a BaseService; TotalSizeLimit enforced; tests fixed
8 years ago
Jae Kwon
1261fca160
FindLast
8 years ago
Jae Kwon
d741b81ab5
Add better docs for Group
8 years ago
Jae Kwon
c26b857900
Fix Search and add test
8 years ago
Jae Kwon
1859c4d5fe
First commit
8 years ago