1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

In ctdb catdb, print the payload data length without the ctdb header length

(This used to be ctdb commit 45b3fe253c1d00c571b351fc73415bc799df3083)
This commit is contained in:
Volker Lendecke 2010-03-24 10:35:10 +01:00 committed by Ronnie Sahlberg
parent 184ca81bcd
commit 029d7a9b33

View File

@ -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<data.dsize;i++) {
if (ISASCII(data.dptr[i])) {
fprintf(f, "%c", data.dptr[i]);