+/* Causes the log record read by the previous call to ovsdb_log_read() to be
+ * effectively discarded. The next call to ovsdb_log_write() will overwrite
+ * that previously read record.
+ *
+ * Calling this function more than once has no additional effect.
+ *
+ * This function is useful when ovsdb_log_read() successfully reads a record
+ * but that record does not make sense at a higher level (e.g. it specifies an
+ * invalid transaction). */
+void
+ovsdb_log_unread(struct ovsdb_log *file)
+{
+ ovs_assert(file->mode == OVSDB_LOG_READ);
+ file->offset = file->prev_offset;
+}
+