WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] invalidate the local cache of hostname on Host.set_hostname_live
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Mon, 12 Apr 2010 17:57:12 +0100
Delivery-date: Mon, 12 Apr 2010 09:54:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# 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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] invalidate the local cache of hostname on Host.set_hostname_live, David Scott <=