mirror of
https://github.com/OpenNebula/one.git
synced 2025-08-24 17:49:28 +03:00
F #4809: Safer purge function for RAFT log
This commit is contained in:
@ -531,7 +531,7 @@ int LogDB::purge_log()
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int delete_index = last_index - log_retention;
|
||||
unsigned int delete_index = last_applied - log_retention;
|
||||
|
||||
// keep the last "log_retention" records as well as those not applied to DB
|
||||
oss << "DELETE FROM logdb WHERE timestamp > 0 AND log_index >= 0 "
|
||||
|
Reference in New Issue
Block a user