From 029d7a9b330bbc447d046da2b6b705de757ce935 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 24 Mar 2010 10:35:10 +0100 Subject: [PATCH] In ctdb catdb, print the payload data length without the ctdb header length (This used to be ctdb commit 45b3fe253c1d00c571b351fc73415bc799df3083) --- ctdb/client/ctdb_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index 9a8917633b9..9e5f7fc8ba0 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -1906,7 +1906,7 @@ int ctdb_dumpdb_record(struct ctdb_context *ctdb, TDB_DATA key, TDB_DATA data, v fprintf(f, "dmaster: %u\n", h->dmaster); fprintf(f, "rsn: %llu\n", (unsigned long long)h->rsn); - fprintf(f, "data(%u) = \"", (unsigned)data.dsize); + fprintf(f, "data(%u) = \"", (unsigned)data.dsize - sizeof(*h)); for (i=sizeof(*h);i