From 17c686a802016269c69789d92ddedb7c35f5c1a7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 8 Mar 2017 18:51:27 -0800 Subject: [PATCH] Make sure Swift store operations close the source file handle Bug: T159607 Change-Id: I9a8907a20ba83f33cc5fc96bc15a1728770f656a --- includes/libs/filebackend/SwiftFileBackend.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/libs/filebackend/SwiftFileBackend.php b/includes/libs/filebackend/SwiftFileBackend.php index c50dfd7245d..631f6fd6faf 100644 --- a/includes/libs/filebackend/SwiftFileBackend.php +++ b/includes/libs/filebackend/SwiftFileBackend.php @@ -348,6 +348,8 @@ class SwiftFileBackend extends FileBackendStore { }; $opHandle = new SwiftFileOpHandle( $this, $handler, $reqs ); + $opHandle->resourcesToClose[] = $handle; + if ( !empty( $params['async'] ) ) { // deferred $status->value = $opHandle; } else { // actually write the object in Swift -- 2.11.4.GIT