projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cd3062
)
Add macro to calculate a hash from a part of the message id
author
Wilfried Goesgens
<willi@arangodb.com>
Sun, 3 Jan 2016 16:05:16 +0000
(17:05 +0100)
committer
Wilfried Goesgens
<willi@arangodb.com>
Sun, 3 Jan 2016 16:05:16 +0000
(17:05 +0100)
libcitadel/lib/libcitadel.h
patch
|
blob
|
history
diff --git
a/libcitadel/lib/libcitadel.h
b/libcitadel/lib/libcitadel.h
index 3a4d7a18bb9527268df3219bd3656e5ce1a33410..366b8a62c8ce977ce0598403a32061f197867c6f 100644
(file)
--- a/
libcitadel/lib/libcitadel.h
+++ b/
libcitadel/lib/libcitadel.h
@@
-677,6
+677,7
@@
extern ConstStr RoomNetCfgStrs[maxRoomNetCfg];
/* a nice consistent place to define how we turn a message id into a thread id hash */
#define ThreadIdHash(Buf) abs(HashLittle(ChrPtr(Buf), StrLength(Buf)))
+#define ThreadIdHashOffset(Buf, Offset) abs(HashLittle(ChrPtr(Buf) + Offset, StrLength(Buf)-Offset))
#ifdef __cplusplus
extern "C" {