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:
parent
a7b09144ea
commit
e1084aaa9c
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user