Revision 0888ae48 src/rm/RequestManagerZone.cc

View differences:

src/rm/RequestManagerZone.cc
381 381
        }
382 382
    }
383 383

  
384
    if ( logdb->get_log_record(index, lr) != 0 )
384
    if ( logdb->get_log_record(index, lr) == 0 )
385 385
    {
386 386
        if ( lr.term != term )
387 387
        {
388 388
            logdb->delete_log_records(index);
389 389
        }
390
        else //Already a log record with same index and term
391
        {
392
            success_response(static_cast<int>(current_term), att);
393
            return;
394
        }
390 395
    }
391 396

  
392 397
    ostringstream sql_oss(sql);

Also available in: Unified diff