[ovs-git] Open vSwitch: ovsdb-tool: Don't wait for lockfiles on "compact" or "convert". (master)

dev at openvswitch.org dev at openvswitch.org
Tue Jun 15 17:18:22 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  7a6ec19d4df284f5553cd21acbb7887c744d53d3 (commit)
      from  7e7d587d68a22aa47745d5acadd9790d1a34934f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7a6ec19d4df284f5553cd21acbb7887c744d53d3
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=7a6ec19d4df284f5553cd21acbb7887c744d53d3
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-tool: Don't wait for lockfiles on "compact" or "convert".
		
Until now, "ovsdb-tool convert" and "ovsdb-tool compact" were willing to
wait an arbitrarily long time to get a lock on the database or on a
temporary file.  In practice, though, the program most likely to have the
lock is ovsdb-server, which is not a transient process, and thus
ovsdb-tool will likely wait indefinitely if it waits at all.

This commit changes these ovsdb-tool commands so that they won't wait at
all if some other program has the lock.  (The other commands already had
this behavior.)

As a side effect, this change fixes the behavior of
"/etc/init.d/openvswitch start" when Open vSwitch was already running.
Previously, it would hang waiting for "ovsdb-tool convert" to finish.
Now, it completes quickly with an error.

CC: Reid Price <reid at nicira.com>
Bug #2864.


-----------------------------------------------------------------------

Summary of changes:
 ovsdb/ovsdb-tool.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list