Skip to content

Loading…

CLEARWATER: CA-98936: Stop xapi from creating files in /tmp every time it gets an update from xenopsd #1057

Merged
merged 1 commit into from

2 participants

@johnelse
Xapi Project member

No description provided.

@johnelse johnelse CA-98936: Stop xapi from creating files in /tmp every time it gets an…
… update from xenopsd

Signed-off-by: John Else <john.else@citrix.com>
00893c2
@johnelse
Xapi Project member

Duplicate of #1016 for clearwater

@malcolmcrossley malcolmcrossley merged commit fb98313 into xapi-project:clearwater

1 check was pending

default Merged build triggered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 4, 2013
  1. @johnelse

    CA-98936: Stop xapi from creating files in /tmp every time it gets an…

    johnelse committed with johnelse
    … update from xenopsd
    
    Signed-off-by: John Else <john.else@citrix.com>
Showing with 0 additions and 11 deletions.
  1. +0 −11 ocaml/xapi/xapi_xenops.ml
View
11 ocaml/xapi/xapi_xenops.ml
@@ -661,8 +661,6 @@ module Xenopsd_metadata = struct
delete_nolock ~__context id
)
- let counter = ref 0
-
let update ~__context ~self =
let id = id_of_vm ~__context ~self in
Mutex.execute metadata_m
@@ -672,15 +670,6 @@ module Xenopsd_metadata = struct
then
let txt = create_metadata ~__context ~upgrade:false ~self |> Metadata.rpc_of_t |> Jsonrpc.to_string in
begin match Xapi_cache.find_nolock id with
- | Some old ->
- if old <> txt then begin
- Unixext.write_string_to_file (Printf.sprintf "/tmp/metadata.old.%d" !counter) old;
- Unixext.write_string_to_file (Printf.sprintf "/tmp/metadata.new.%d" !counter) txt;
- incr counter
- end
- | None -> ()
- end;
- begin match Xapi_cache.find_nolock id with
| Some old when old = txt -> ()
| _ ->
debug "VM %s metadata has changed: updating xenopsd" id;
Something went wrong with that request. Please try again.