1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #2966: Update 'applied' field when logdb record is applied

This commit is contained in:
Christian González 2019-02-20 17:13:41 +01:00 committed by Ruben S. Montero
parent a7b09144ea
commit e1084aaa9c

View File

@ -361,7 +361,7 @@ int LogDB::apply_log_record(LogDBRecord * lr)
{
std::ostringstream oss;
oss << "UPDATE logdb SET timestamp = " << time(0) << " WHERE "
oss << "UPDATE logdb SET timestamp = " << time(0) << ", applied = 1" << " WHERE "
<< "log_index = " << lr->index << " AND timestamp = 0";
if ( db->exec_wr(oss) != 0 )