summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-12-07 16:01:01 -0800
committerBen Pfaff <blp@ovn.org>2018-03-24 12:04:51 -0700
commitf70b61d33dd3a099cd51e95b1047c50c6bf331ca (patch)
treeb74d1e9ab143a8c5e320cb5aa7c83747e7be04b8 /tests
parent83e866067ea67807e573c64fc6ee69d47f6d5b7c (diff)
downloadopenvswitch-f70b61d33dd3a099cd51e95b1047c50c6bf331ca.tar.gz
log: Add async commit support.
The OVSDB log code has always had the ability to commit the log to disk and wait for the commit to finish. This patch introduces a new feature that allows the client to start a commit in the background and then to determine asynchronously that the commit has completed. This will be especially useful later for the distributed database feature. Signed-off-by: Ben Pfaff <blp@ovn.org> Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-ovsdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c
index 6b2cde863..c0c5a4df5 100644
--- a/tests/test-ovsdb.c
+++ b/tests/test-ovsdb.c
@@ -380,7 +380,7 @@ do_log_io(struct ovs_cmdl_context *ctx)
error = ovsdb_log_write(target, json);
json_destroy(json);
} else if (!strcmp(command, "commit")) {
- error = ovsdb_log_commit(target);
+ error = ovsdb_log_commit_block(target);
} else if (!strcmp(command, "replace_start")) {
ovs_assert(!replacement);
error = ovsdb_log_replace_start(log, &replacement);