summaryrefslogtreecommitdiffstats
path: root/swift/1.4.8/plugins/constraints.py
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2012-10-12 15:06:26 -0400
committerPeter Portante <peter.portante@redhat.com>2013-04-29 16:35:55 -0400
commita612e9063250b9cdb799205eee33f714c453e29b (patch)
treefb0510304a8c144c2a0648305d34076efaa3662d /swift/1.4.8/plugins/constraints.py
parente59b0bfa4b437a464a08cf1fd1512936c1de2682 (diff)
Fix BZ 865858: remove unnecessary system calls around xattr ops
The following is a simple refactoring of the read and write metadata methods to just make calls to get/set/remove xattr operations instead of trying to stat/open/close the file. For a single GET operation, this brings down the number of system calls made from 13 to 3 for a file object with no significantly sized metadata (meaning, only 1 xattr key/value pair is needed to store the metadata). Change-Id: I698f5886d63d5203f130c8eac1536a3ee4b0dbfb BUG: 865858 Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/4078 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'swift/1.4.8/plugins/constraints.py')
0 files changed, 0 insertions, 0 deletions