mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
(cherry picked from commit 734bc15b3008df9f7b7c3d7caf853c0aa8d4bdb6)
This commit is contained in:
parent
26c076710f
commit
f979efd2b5
@ -611,8 +611,8 @@ int LogDB::purge_log()
|
||||
|
||||
multiple_cb<std::vector, uint64_t> cb_info;
|
||||
single_cb<string> cb_min_idx;
|
||||
std::vector<uint64_t> maxmin_i{0, 0};
|
||||
std::vector<uint64_t> maxmin_e{0, 0};
|
||||
std::vector<uint64_t> maxmin_i;
|
||||
std::vector<uint64_t> maxmin_e;
|
||||
string min_idx;
|
||||
|
||||
int rc = 0;
|
||||
@ -677,11 +677,14 @@ int LogDB::purge_log()
|
||||
|
||||
cb_info.unset_callback();
|
||||
|
||||
oss.str("");
|
||||
oss << "Purging obsolete LogDB records: " << rc << " records purged. Log state: "
|
||||
<< maxmin_i[0] << "," << maxmin_i[1] << " - " << maxmin_e[0] << "," << maxmin_e[1];
|
||||
if (maxmin_i.size() == 2 && maxmin_e.size() == 2)
|
||||
{
|
||||
oss.str("");
|
||||
oss << "Purging obsolete LogDB records: " << rc << " records purged. Log state: "
|
||||
<< maxmin_i[0] << "," << maxmin_i[1] << " - " << maxmin_e[0] << "," << maxmin_e[1];
|
||||
|
||||
NebulaLog::log("DBM", Log::INFO, oss);
|
||||
NebulaLog::log("DBM", Log::INFO, oss);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
/* Federated records. Keep last log_retention federated records */
|
||||
|
Loading…
x
Reference in New Issue
Block a user