[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH] invalidate the local cache of hostname on Host.set_hostname_live



# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1271091324 -3600
# Node ID 64de42caeba1ba515ef948d201c85269a0857d5a
# Parent  c2ba03f407d05b94ea883eb5dee68be9f24a72bc
CA-40149: invalidate the local cache of hostname on Host.set_hostname_live

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r c2ba03f407d0 -r 64de42caeba1 ocaml/xapi/xapi_host.ml
--- a/ocaml/xapi/xapi_host.ml   Mon Apr 12 14:44:41 2010 +0100
+++ b/ocaml/xapi/xapi_host.ml   Mon Apr 12 17:55:24 2010 +0100
@@ -864,6 +864,7 @@
   if is_invalid_hostname hostname then
     raise (Api_errors.Server_error (Api_errors.host_name_invalid, [ "hostname 
contains invalid characters" ]));
   ignore(Forkhelpers.execute_command_get_output 
"/opt/xensource/libexec/set-hostname" [hostname]);
+  Debug.invalidate_hostname_cache ();
   Db.Host.set_hostname ~__context ~self:host ~value:hostname
   )
 
1 file changed, 1 insertion(+)
ocaml/xapi/xapi_host.ml |    1 +


Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.