Revision 35da0ee1

View differences:

src/sql/LogDB.cc
172 172
        prev_index = 0;
173 173
    }
174 174

  
175
    lr.index = 0;
175
    lr.index = index + 1;
176 176

  
177 177
    oss << "SELECT c.log_index, c.term, c.sqlcmd,"
178 178
        << " c.timestamp, p.log_index, p.term"
......
287 287
        //Check for duplicate (leader retrying i.e. xmlrpc client timeout)
288 288
        LogDBRecord lr;
289 289

  
290
        if ( get_log_record(index, lr) == 0 && !lr.sql.empty() )
290
        if ( get_log_record(index, lr) == 0 )
291 291
        {
292 292
            NebulaLog::log("DBM", Log::ERROR, "Duplicated log record");
293 293
            rc = 0;

Also available in: Unified diff