summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-26 11:35:16 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-26 11:35:16 -0400
commit4f517d086b2e05dfa1bc22c4a1331e84f540b9a4 (patch)
tree9d854efcdab593e7b108356d29cdb0aa49efc9b5
parenta1c8d1b2c34a995d1928538af101c87e43f52c14 (diff)
downloadmongo-4f517d086b2e05dfa1bc22c4a1331e84f540b9a4.tar.gz
debugging for solaris
-rw-r--r--util/hashtab.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/hashtab.h b/util/hashtab.h
index c9b4e438dba..80a7241140a 100644
--- a/util/hashtab.h
+++ b/util/hashtab.h
@@ -108,8 +108,11 @@ namespace mongo {
_buf = buf;
//nodes = (Node *) buf;
- assert( sizeof(Node) == 628 );
- //out() << "HashTable() " << _name << " sizeof(node):" << sizeof(Node) << " n:" << n << endl;
+ if ( sizeof(Node) != 628 ){
+ out() << "HashTable() " << _name << " sizeof(node):" << sizeof(Node) << " n:" << n << endl;
+ assert( sizeof(Node) == 628 );
+ }
+
}
Type* get(const Key& k) {