#include "transaction.h"
#include "uuid.h"
#include "util.h"
-
-#define THIS_MODULE VLM_ovsdb_file
#include "vlog.h"
+VLOG_DEFINE_THIS_MODULE(ovsdb_file)
+
/* Minimum number of milliseconds between database compactions. */
#define COMPACT_MIN_MSEC (10 * 60 * 1000) /* 10 minutes. */
const struct ovsdb_table *table = node->data;
const struct ovsdb_row *row;
- HMAP_FOR_EACH (row, struct ovsdb_row, hmap_node, &table->rows) {
+ HMAP_FOR_EACH (row, hmap_node, &table->rows) {
ovsdb_file_txn_add_row(&ftxn, NULL, row, NULL);
}
}
if (comment) {
json_object_put_string(json, "_comment", comment);
}
- json_object_put(json, "_date", json_integer_create(time_now()));
+ json_object_put(json, "_date", json_integer_create(time_wall()));
error = ovsdb_log_write(log, json);
json_destroy(json);