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

master
danj 2006-05-10 19:03:22 +00:00
parent 599c6559d6
commit ee2e443055
1 changed files with 2 additions and 2 deletions

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. */