summaryrefslogtreecommitdiffstats
path: root/ocaml
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-06 13:47:07 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-06 13:47:07 +0100
commitad7c4498f66f37c4219242c6df04d28e9ee7877f (patch)
tree8590efb02ddb41e798708b2901f519534bafadaa /ocaml
parent52d188e32fb8addb45bf926df07e34ab35898f85 (diff)
downloadlibguestfs-ad7c4498f66f37c4219242c6df04d28e9ee7877f.tar.gz
libguestfs-ad7c4498f66f37c4219242c6df04d28e9ee7877f.tar.xz
libguestfs-ad7c4498f66f37c4219242c6df04d28e9ee7877f.zip
ocaml: Calling Gc.compact before g#mount_local works around RHBZ#838081.
Diffstat (limited to 'ocaml')
-rw-r--r--ocaml/t/guestfs_500_parallel_mount_local.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/ocaml/t/guestfs_500_parallel_mount_local.ml b/ocaml/t/guestfs_500_parallel_mount_local.ml
index a26ff9d6..e1f5e26a 100644
--- a/ocaml/t/guestfs_500_parallel_mount_local.ml
+++ b/ocaml/t/guestfs_500_parallel_mount_local.ml
@@ -115,6 +115,7 @@ and start_thread (filename, mp) =
let t = time () in
if t -. start_t < total_time then (
if debug then eprintf "%s < mounting filesystem\n%!" mp;
+ Gc.compact (); (* Workaround for RHBZ#838081 *)
g#mount_local mp;
(* Run test in an exec'd subprocess. *)