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] make PIF_metrics persistent again

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] make PIF_metrics persistent again
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Wed, 27 Jan 2010 17:20:37 +0000
Delivery-date: Wed, 27 Jan 2010 09:13:39 -0800
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 1264612820 0
# Node ID d3ffdf2e69f10967628ac3ee1708b1619eb3b931
# Parent  22cd3f304b9e0818b80ac5a40e6d4c6438c5e58a
CA-36082: make PIF_metrics persistent again. This fixes annoying glitches like: 
restarting xapi on the pool master causes it to forget about the carrier status 
of the slaves.

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

diff -r 22cd3f304b9e -r d3ffdf2e69f1 ocaml/idl/datamodel.ml
--- a/ocaml/idl/datamodel.ml    Thu Jan 21 15:45:09 2010 +0000
+++ b/ocaml/idl/datamodel.ml    Wed Jan 27 17:20:20 2010 +0000
@@ -3839,7 +3839,7 @@
        ()
 
 let pif_metrics = 
-    create_obj ~in_db:true ~in_product_since:rel_rio 
~in_oss_since:oss_since_303 ~internal_deprecated_since:None 
~persist:PersistNothing ~gen_constructor_destructor:false ~name:_pif_metrics 
~descr:"The metrics associated with a physical network interface"
+    create_obj ~in_db:true ~in_product_since:rel_rio 
~in_oss_since:oss_since_303 ~internal_deprecated_since:None 
~persist:PersistEverything ~gen_constructor_destructor:false ~name:_pif_metrics 
~descr:"The metrics associated with a physical network interface"
       ~gen_events:true
       ~doccomments:[]
       ~messages_default_allowed_roles:_R_POOL_OP
1 file changed, 1 insertion(+), 1 deletion(-)
ocaml/idl/datamodel.ml |    2 +-


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] make PIF_metrics persistent again, David Scott <=