path: root/xlators/protocol
diff options
authorPeter Portante <>2012-10-19 01:35:46 -0400
committerAnand Avati <>2012-10-25 15:04:35 -0700
commit8534cd56d8633c9468f337372d78c436263f36f6 (patch)
tree5271c9abd7de7e19fa66f3a907cf7b2506e94e50 /xlators/protocol
parent4f6aeb63d380f726b185bc25db1e50093b3119b3 (diff)
Reduce the number of stat/fstat system calls made
This address BZ 868086, This refactoring consolidates the code a bit, and uses os.stat calls to get all the information in one call when gathering the metadata for an object. The five stat system calls (invoked via all the os.path.*() calls) have been reduced to one. We also added a unit test for the one new behavior where get_object_metadata() will now throw an OSError exception if it has a problem stat'ing a file that exists. Change-Id: Iad5410c77938af68a47be757a3170abd201adeb0 BUG: 868086 Signed-off-by: Peter Portante <> Reviewed-on: Reviewed-by: Kaleb KEITHLEY <> Reviewed-by: Mohammed Junaid <> Tested-by: Anand Avati <>
Diffstat (limited to 'xlators/protocol')
0 files changed, 0 insertions, 0 deletions