summaryrefslogtreecommitdiffstats
path: root/ufo/gluster/swift/common/Glusterfs.py
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2013-01-12 22:39:24 -0500
committerPeter Portante <peter.portante@redhat.com>2013-04-29 16:35:57 -0400
commit1e9a2579a49b4e78632da58de90431d15e59b921 (patch)
treeb752a983e0372315edd725615d823a63e80f1512 /ufo/gluster/swift/common/Glusterfs.py
parentf59e2c6f286155745c4fb5ad294bfa4b6ca9406c (diff)
object-storage: yield during directory tree walks
Have the co-routine (greenlet) yield during long running directory tree walks to avoid starving out other greenlets that might be available to run. A directory walk involves statting every file in the tree to get it size. For large numbers of files, this can get expensive. So we yield after every stat call, and after processing every directory. Change-Id: I07f1dfeef6a09b5817e0c237ecc748c491d52a31 BUG: 894674 Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/4380 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Mohammed Junaid <junaid@redhat.com> Tested-by: Mohammed Junaid <junaid@redhat.com>
Diffstat (limited to 'ufo/gluster/swift/common/Glusterfs.py')
0 files changed, 0 insertions, 0 deletions