Patch subject is complete summary.

 ocaml/xapi/xapi_sync.ml |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)


# HG changeset patch
# User Mike McClurg <[email protected]>
# Date 1288808153 0
# Node ID a2b7f01462aee1c07edf4f567fa964e03f7330e6
# Parent  eed6278eb5a6f52459002301f3daac4ca10990bd
[mq]: CA-47663-The-host-blob-sync-logs-10s-of-thousands-of-log-lines-per-iteration

diff --git a/ocaml/xapi/xapi_sync.ml b/ocaml/xapi/xapi_sync.ml
--- a/ocaml/xapi/xapi_sync.ml
+++ b/ocaml/xapi/xapi_sync.ml
@@ -35,9 +35,12 @@
 				and session = Xapi_session.slave_login ~__context ~host:(Helpers.get_localhost ~__context) ~psecret:!Xapi_globs.pool_secret in
 				Unix.putenv "XSH_SESSION" (Ref.string_of session);
 
-				let env = Unix.environment () in
-				let output,log = Forkhelpers.execute_command_get_output ~env "/usr/bin/rsync" ["--delete";"-avz";localpath;remotepath;"-e";"/opt/xensource/bin/xsh"] in
-				debug "sync output: '%s' log: '%s'" output log;
+				let output,log = Forkhelpers.execute_command_get_output
+					~env:(Unix.environment ())
+					"/usr/bin/rsync"
+					["--delete";"--stats";"-az";localpath;remotepath;"-e";"/opt/xensource/bin/xsh"] in
+				debug "sync output: \n%s" output;
+				debug "log output: '%s'" log;
 
 				(* Store the last blob sync time in the Host.other_config *)
 				(try Db.Host.remove_from_other_config ~__context ~self:host ~key:Xapi_globs.last_blob_sync_time with _ -> ());
_______________________________________________
xen-api mailing list
[email protected]
http://lists.xensource.com/mailman/listinfo/xen-api

Reply via email to