|
|
@ -62,7 +62,7 @@ class CDBStringUpdater : public NLMISC::CSingleton<CDBStringUpdater>
|
|
|
|
// hasher for the identifier
|
|
|
|
// hasher for the identifier
|
|
|
|
struct THashDBStringLeaf
|
|
|
|
struct THashDBStringLeaf
|
|
|
|
{
|
|
|
|
{
|
|
|
|
enum { bucket_size = 4, min_buckets = 8, };
|
|
|
|
enum { bucket_size = 4, min_buckets = 8 };
|
|
|
|
size_t operator()(const TBDStringLeaf &stringLeaf) const
|
|
|
|
size_t operator()(const TBDStringLeaf &stringLeaf) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return ((size_t)stringLeaf.ClientDB>>4) ^ ((size_t)stringLeaf.Node>>4);
|
|
|
|
return ((size_t)stringLeaf.ClientDB>>4) ^ ((size_t)stringLeaf.Node>>4);
|
|
|
|