minio/pkg/fs
Brendan Ashworth 583e4ecff6 pkg/fs: optimize GetObject syscalls for common case
In the common case, GetObject is called on a bucket that exists and an
object that exists and is not a directory. It should be optimized for
this case, thus error-related syscalls are pushed back until they are
necessary.

This should not impact performance negatively in the uncommon case, and
instead drops two otherwise unnecessary os.Stat's in the common case.

The race conditions around a proper error being returned were present
beforehand.

It also renames 'err' to 'e'.
2016-03-13 13:56:33 -07:00
..
api_suite_test.go cleanup: Remove unecessary packages and tests. Simplify. 2016-03-11 19:53:55 -08:00
dir.go cleanup: Remove unecessary packages and tests. Simplify. 2016-03-11 19:53:55 -08:00
fs_test.go server: Remove max-buckets option and now max buckets is unlimited. 2016-02-06 18:25:47 -08:00
fs-backend-metadata.go accessPolicy: Implement Put, Get, Delete access policy. 2016-03-08 17:44:50 -08:00
fs-bucket_test.go test for GetBucketInfo 2016-03-12 14:31:30 +05:30
fs-bucket-listobjects.go cleanup: Remove unecessary packages and tests. Simplify. 2016-03-11 19:53:55 -08:00
fs-bucket.go cleanup: Rename ObjectMetadata as ObjectInfo. 2016-03-11 16:58:08 -08:00
fs-datatypes.go cleanup: Rename ObjectMetadata as ObjectInfo. 2016-03-11 16:58:08 -08:00
fs-errors.go accessPolicy: Implement Put, Get, Delete access policy. 2016-03-08 17:44:50 -08:00
fs-multipart.go cleanup: Rename ObjectMetadata as ObjectInfo. 2016-03-11 16:58:08 -08:00
fs-object_test.go pkg/fs: add benchmark for GetObject 2016-03-13 11:13:06 -07:00
fs-object.go pkg/fs: optimize GetObject syscalls for common case 2016-03-13 13:56:33 -07:00
fs-utils_test.go Better structuring of fs-utils test 2016-03-11 19:19:47 +05:30
fs-utils.go pkg/fs: test, document, and fix IsValid{Bucket,Object}Name 2016-03-07 19:59:24 -08:00
fs.go api: refactor list object handling in fs backend 2016-03-11 02:20:51 +05:30