fix hash and queue stat variable creation (macro was wrong)

This commit is contained in:
danj 2006-05-10 19:03:22 +00:00
parent 599c6559d6
commit ee2e443055

4
bdb.c
View file

@ -1591,7 +1591,7 @@ VALUE db_stat(VALUE obj, VALUE vtxn, VALUE vflags)
switch(dbtype) {
#define hs_int(field) \
rb_iv_set(s_obj,"@field",INT2FIX(su.hstat->field))
rb_iv_set(s_obj,"@" #field,INT2FIX(su.hstat->field))
case DB_HASH:
hs_int(hash_magic);
@ -1642,7 +1642,7 @@ VALUE db_stat(VALUE obj, VALUE vtxn, VALUE vflags)
break;
#define qs_int(field) \
rb_iv_set(s_obj,"@field",INT2FIX(su.qstat->field))
rb_iv_set(s_obj,"@" #field,INT2FIX(su.qstat->field))
case DB_QUEUE:
qs_int(qs_magic); /* Magic number. */