[ovs-dev] [PATCH 13/14] ovsdb: Implement ovsdb-tool commands "compact" and "convert".
Jesse Gross
jesse at nicira.com
Fri Feb 12 15:47:33 PST 2010
On Fri, Feb 12, 2010 at 2:37 PM, Ben Pfaff <blp at nicira.com> wrote:
>
> + /* Get (temporary) destination. */
> + if (in_place) {
> + dst_name = xasprintf("%s.tmp", src_name);
> + } else {
> + retval = lockfile_lock(src_name, INT_MAX, &src_lock);
> + if (retval) {
> + ovs_fatal(retval, "%s: failed to lock lockfile", src_name);
> + }
> + }
>
Why do we only lock the source if it's not in place (as it isn't technically
in place but still two different files)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/dev/attachments/20100212/d20945b7/attachment.htm>
More information about the dev
mailing list