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

[Xen-changelog] Fix log message written when xenstored corrupts its store.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID d809359ab32d3915f075b8417536d6890ab28ded
# Parent  956f7c5b1c1f00d3f8e9d51c82670327027469e4
Fix log message written when xenstored corrupts its store.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/xenstore/xenstored_core.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

diff -r 956f7c5b1c1f -r d809359ab32d tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c   Tue May 23 16:14:49 2006 +0100
+++ b/tools/xenstore/xenstored_core.c   Tue May 23 16:17:28 2006 +0100
@@ -451,6 +451,11 @@ static struct node *read_node(struct con
 
 static bool write_node(struct connection *conn, const struct node *node)
 {
+       /*
+        * conn will be null when this is called from manual_node.
+        * tdb_context copes with this.
+        */
+
        TDB_DATA key, data;
        void *p;
 
@@ -478,7 +483,7 @@ static bool write_node(struct connection
 
        /* TDB should set errno, but doesn't even set ecode AFAICT. */
        if (tdb_store(tdb_context(conn), key, data, TDB_REPLACE) != 0) {
-               corrupt(conn, "Write of %s = %s failed", key, data);
+               corrupt(conn, "Write of %s failed", key.dptr);
                goto error;
        }
        return true;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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