git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4466802
)
ctdb: add output of jenkins hash to ctdb catdb (with --print-hash)
author
Michael Adam
<obnox@samba.org>
Mon, 3 Jan 2011 12:15:34 +0000
(13:15 +0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 12 Jan 2012 07:49:45 +0000
(08:49 +0100)
client/ctdb_client.c
patch
|
blob
|
history
diff --git
a/client/ctdb_client.c
b/client/ctdb_client.c
index 488d26a2cb5d23be5ed30b68b4c2f48ed8b38146..9dd9c78c37899942205a58a68d94b2fd2b16593b 100644
(file)
--- a/
client/ctdb_client.c
+++ b/
client/ctdb_client.c
@@
-1928,6
+1928,7
@@
int ctdb_dumpdb_record(struct ctdb_context *ctdb, TDB_DATA key, TDB_DATA data, v
if (c->printhash) {
fprintf(f, "hash: 0x%08x\n", ctdb_hash(&key));
+ fprintf(f, "jenkins hash: 0x%08x\n", (uint32_t)tdb_jenkins_hash(&key));
}
fprintf(f, "flags: 0x%08x", h->flags);