diff options
author | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 15:54:39 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 16:07:00 +0100 |
commit | 23e1f63738cef1a82e2dc18fe395ac208fdee5fc (patch) | |
tree | f4993ddb3d9a969e96ec1b7a6387dd51c1e00aef /erts/emulator/beam/erl_db_util.c | |
parent | 4ceec9775e33de5587ed31b3c1902825ad0a0996 (diff) | |
download | otp-23e1f63738cef1a82e2dc18fe395ac208fdee5fc.tar.gz otp-23e1f63738cef1a82e2dc18fe395ac208fdee5fc.tar.bz2 otp-23e1f63738cef1a82e2dc18fe395ac208fdee5fc.zip |
erts: Remove debug variables in erl_db
Diffstat (limited to 'erts/emulator/beam/erl_db_util.c')
-rw-r--r-- | erts/emulator/beam/erl_db_util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_db_util.c b/erts/emulator/beam/erl_db_util.c index 7dfbb2ed02..42079a7cee 100644 --- a/erts/emulator/beam/erl_db_util.c +++ b/erts/emulator/beam/erl_db_util.c @@ -2846,7 +2846,9 @@ void* db_store_term_comp(DbTableCommon *tb, DbTerm* old, Uint offset, Eterm obj) Uint new_sz = offset + db_size_dbterm_comp(tb, obj); byte* basep; DbTerm* newp; +#ifdef DEBUG byte* top; +#endif ASSERT(tb->compress); if (old != 0) { @@ -2868,7 +2870,10 @@ void* db_store_term_comp(DbTableCommon *tb, DbTerm* old, Uint offset, Eterm obj) } newp->size = size_object(obj); - top = copy_to_comp(tb, obj, newp, new_sz); +#ifdef DEBUG + top = +#endif + copy_to_comp(tb, obj, newp, new_sz); ASSERT(top <= basep + new_sz); /* ToDo: Maybe realloc if ((basep+new_sz) - top) > WASTED_SPACE_LIMIT */ |