Archived
This forum has been archived. Please start a new discussion on GitHub.
Freeze does not set log auto remove flag properly
Hello,
We noticed that even if property Freeze.DbEnv.<name>.OldLogsAutoDelete explicitly set to 1 old log files are not being deleted by the checkpoint procedure. Setting this flag in DB_CONFIG file fixes the issues. So problem is in following line:
SharedDbEnv.cpp@557 from Ice 3.4.0
_env->set_flags(DB_LOG_AUTO_REMOVE, 1);
should be instead:
_env->log_set_config(DB_LOG_AUTO_REMOVE, 1);
Then it works fine. This happens in BDB 4.7 and 4.8 (not tested with other versions)
Thanks,
Vyacheslav
We noticed that even if property Freeze.DbEnv.<name>.OldLogsAutoDelete explicitly set to 1 old log files are not being deleted by the checkpoint procedure. Setting this flag in DB_CONFIG file fixes the issues. So problem is in following line:
SharedDbEnv.cpp@557 from Ice 3.4.0
_env->set_flags(DB_LOG_AUTO_REMOVE, 1);
should be instead:
_env->log_set_config(DB_LOG_AUTO_REMOVE, 1);
Then it works fine. This happens in BDB 4.7 and 4.8 (not tested with other versions)
Thanks,
Vyacheslav
0
Comments
-
Hi,
Thanks for the bug report. We'd already discovered this issue, and it will be fixed in the next release.
Regards,
Mark0