fix hash and queue stat variable creation (macro was wrong)
This commit is contained in:
parent
599c6559d6
commit
ee2e443055
1 changed files with 2 additions and 2 deletions
4
bdb.c
4
bdb.c
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue