path: root/extras/hook-scripts
diff options
authorPeter Portante <>2013-01-12 22:39:24 -0500
committerPeter Portante <>2013-04-29 16:35:57 -0400
commit1e9a2579a49b4e78632da58de90431d15e59b921 (patch)
treeb752a983e0372315edd725615d823a63e80f1512 /extras/hook-scripts
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 <> Reviewed-on: Reviewed-by: Kaleb KEITHLEY <> Reviewed-by: Jeff Darcy <> Reviewed-by: Mohammed Junaid <> Tested-by: Mohammed Junaid <>
Diffstat (limited to 'extras/hook-scripts')
0 files changed, 0 insertions, 0 deletions