]> xenbits.xensource.com Git - xen.git/commitdiff
Further attempts to recover from a corrupt store, this one triggered when a
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 30 Mar 2006 23:10:54 +0000 (00:10 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 30 Mar 2006 23:10:54 +0000 (00:10 +0100)
tdb_store fails.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xenstore/xenstored_core.c

index 6515b1b21eb8140512319e2c76b023b746f1331a..f4fa447d073efbc41ee9255be6bbd1efe5e2db9f 100644 (file)
@@ -469,6 +469,7 @@ static bool write_node(struct connection *conn, const struct node *node)
 
        /* 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);
                errno = ENOSPC;
                return false;
        }