int printdatasize;
int printlmaster;
int printhash;
+ int printrecordflags;
} options;
#define TIMELIMIT() timeval_current_ofs(options.timelimit, 0)
c.printdatasize = (bool)options.printdatasize;
c.printlmaster = (bool)options.printlmaster;
c.printhash = (bool)options.printhash;
+ c.printrecordflags = (bool)options.printrecordflags;
/* traverse and dump the cluster tdb */
ret = ctdb_dump_db(ctdb_db, &c);
c.printdatasize = (bool)options.printdatasize;
c.printlmaster = false;
c.printhash = (bool)options.printhash;
+ c.printrecordflags = true;
return ctdb_dumpdb_record(d->ctdb, key, data, &c);
}
c.printdatasize = (bool)options.printdatasize;
c.printlmaster = false;
c.printhash = (bool)options.printhash;
+ c.printrecordflags = (bool)options.printrecordflags;
for (i=0; i < m->count; i++) {
uint32_t reqid = 0;
{ "print-datasize", 0, POPT_ARG_NONE, &options.printdatasize, 0, "do not print record data when dumping databases, only the data size", NULL },
{ "print-lmaster", 0, POPT_ARG_NONE, &options.printlmaster, 0, "print the record's lmaster in catdb", NULL },
{ "print-hash", 0, POPT_ARG_NONE, &options.printhash, 0, "print the record's hash when dumping databases", NULL },
+ { "print-recordflags", 0, POPT_ARG_NONE, &options.printrecordflags, 0, "print the record flags in catdb and dumpdbbackup", NULL },
POPT_TABLEEND
};
int opt;