summaryrefslogtreecommitdiff
path: root/ovsdb/file.c
diff options
context:
space:
mode:
authorLeo Alterman <lalterman@nicira.com>2012-08-08 17:40:43 -0700
committerLeo Alterman <lalterman@nicira.com>2012-08-09 15:06:38 -0700
commit4770e795f51cdff3b43325474997088f540c9b18 (patch)
tree335cbf05c72087e3aeaa28898d515f50fcde3e46 /ovsdb/file.c
parentb6d729adb55c24fdeafecdae8565ba04586b93a0 (diff)
downloadopenvswitch-4770e795f51cdff3b43325474997088f540c9b18.tar.gz
lockfile: Remove lockfile_lock timeout argument
lockfile_lock() accepts a timeout argument but, aside from unit tests pertaining to timeout, its value is always 0. Since this feature relies on a periodic SIGALRM signal, which is not a given if we're not caching time, the cleanest solution is just to remove it. Signed-off-by: Leo Alterman <lalterman@nicira.com>
Diffstat (limited to 'ovsdb/file.c')
-rw-r--r--ovsdb/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ovsdb/file.c b/ovsdb/file.c
index 9e2dd5079..43fcb9564 100644
--- a/ovsdb/file.c
+++ b/ovsdb/file.c
@@ -649,7 +649,7 @@ ovsdb_file_compact(struct ovsdb_file *file)
/* Lock temporary file. */
tmp_name = xasprintf("%s.tmp", file->file_name);
- retval = lockfile_lock(tmp_name, 0, &tmp_lock);
+ retval = lockfile_lock(tmp_name, &tmp_lock);
if (retval) {
error = ovsdb_io_error(retval, "could not get lock on %s", tmp_name);
goto exit;