summaryrefslogtreecommitdiffstats
path: root/glusterfs-openstack-swift.spec
diff options
context:
space:
mode:
authorPrashanth Pai <ppai@redhat.com>2016-03-11 17:56:46 +0530
committerThiago da Silva <thiago@redhat.com>2016-05-03 12:47:05 -0700
commitfddb5d4a918affe7837d523b56e53e33f3ae5408 (patch)
tree919445423bd690ff74a64bf7e96dce0e8ad06eb9 /glusterfs-openstack-swift.spec
parent933bc5ade145413b0c7307a12b9d0b4084e7d767 (diff)
Open object only if it's going to be read
Open()ing an object is necessarry only in two cases: * Serving a GET request * Recalculating etag when metadata is stale (can be triggered by any type of request) This change ensures that for requests other than GET, a file is not opened if the metadata is valid (size and etag accurate). Note that if metadata is stale, the file is still opened and read to compute etag. This patch does not change the behaviour of triggering metadata validation and regeneration for non-GET requests. Change-Id: Icefa4dec7d715ec9e6dd68ae7fe89a0d90fe71b3 Signed-off-by: Prashanth Pai <ppai@redhat.com> Reviewed-on: http://review.gluster.org/13684 Reviewed-by: Thiago da Silva <thiago@redhat.com> Tested-by: Thiago da Silva <thiago@redhat.com>
Diffstat (limited to 'glusterfs-openstack-swift.spec')
0 files changed, 0 insertions, 0 deletions