Anton Kaliaev
60018d6148
comment out until someone decides to tackle #2285 ( #2760 )
current code results in panic and we certainly don't want that.
https://github.com/tendermint/tendermint/pull/2286#issuecomment-418281846
6 years ago
Anton Kaliaev
091d2c3e5e
openFile creates a file if not exist => ErrNotExist is not possible
6 years ago
Anton Kaliaev
d178ea9eaf
use our logger in autofile/group
6 years ago
Anton Kaliaev
eb0da7f9cb
libs: Handle SIGHUP explicitly inside autofile ( #2480 )
* handle SIGHUP explicitly inside autofile
Refs #2260
* libs: Use consistent channel suffix
6 years ago
Ismail Khoffi
8ae3334423
[libs/autofile & db/fsdb] Throw error if file permissions change ( #2286 )
* Enforce file permissions in case they've changed
* test behaviour for autofile
* use testify in tests and rename `fInf` to `fileInfo`
* return an error if file permissions have changed
- if we can't read the file, we'll still panic
* get rid of "github.com/pkg/errors" dependency
* address review comments:
- prefix instead of suffix
- add state to err and construct formatting in Error() method
* address review comments:
- move error to libs/errors
6 years ago
Ethan Buchman
9e940b95ad
libs/autofile: bring back loops ( #2261 )
* libs/autofile: bring back loops
* changelog, version
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
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
7 years ago
Zach Ramsay
d02c5d1e30
detele everything
7 years ago
Ethan Buchman
d55243f0e6
fix import paths
7 years ago
Ethan Buchman
ae3bf81833
mv tmlibs files to libs dir
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
Ethan Buchman
0948343a6f
autofile: ensure file is open in Sync
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
63186e34b3
Fix race condition
8 years ago
Jae Kwon
d1848762cf
Fix issue where buffered writes may split a line to two files
8 years ago
Jae Kwon
dc8fa06e64
Add MakeSimpleSearchFunc
8 years ago
Jae Kwon
916f3d789b
Size() returns 0 if file doesn't exist
8 years ago
Jae Kwon
1859c4d5fe
First commit
8 years ago