tendermint/libs/db
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
2018-09-17 14:38:29 +04:00
..
remotedb update grpc version. fix remotedb tests 2018-07-01 23:15:14 -04:00
LICENSE.md mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
README.md mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
backend_test.go libs: Remove usage of custom Fmt, in favor of fmt.Sprintf (#2199) 2018-08-10 09:25:57 +04:00
c_level_db.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
c_level_db_test.go libs: Remove usage of custom Fmt, in favor of fmt.Sprintf (#2199) 2018-08-10 09:25:57 +04:00
common_test.go libs/cmn: Remove Tempfile, Tempdir, switch to ioutil variants (#2114) 2018-07-31 19:43:36 +02:00
db.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
db_test.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
debug_db.go make linter happy 2018-07-02 12:06:43 -04:00
fsdb.go [libs/autofile & db/fsdb] Throw error if file permissions change (#2286) 2018-09-17 14:38:29 +04:00
go_level_db.go New NewGoLevelDBWithOpts() to pass opts down to goleveldb (#2293) 2018-08-29 08:44:55 +04:00
go_level_db_test.go New NewGoLevelDBWithOpts() to pass opts down to goleveldb (#2293) 2018-08-29 08:44:55 +04:00
mem_batch.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
mem_db.go fix import paths 2018-07-01 22:36:49 -04:00
prefix_db.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
prefix_db_test.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
types.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
util.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00
util_test.go mv tmlibs files to libs dir 2018-07-01 22:36:03 -04:00

README.md

TODO: syndtr/goleveldb should be replaced with actual LevelDB instance