Revision 50880bb2 include/LogDB.h

View differences:

include/LogDB.h
125 125
     *    @param raft attributes in XML format
126 126
     *    @return 0 on success
127 127
     */
128
    int insert_raft_state(std::string& raft_xml)
129
    {
130
        return insert_replace(-1, -1, raft_xml, 0);
131
    }
128
    int update_raft_state(std::string& raft_xml);
132 129

  
133 130
    /**
134 131
     *  Returns the raft state attributes as stored in the log
......
273 270
     *
274 271
     *    @return 0 on success
275 272
     */
276
    int insert_replace(int index, int term, const std::string& sql, time_t ts);
273
    int insert(int index, int term, const std::string& sql, time_t ts);
277 274

  
278 275
    /**
279 276
     *  Inserts a new log record in the database. If the record is successfully

Also available in: Unified diff