[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [BUG] documentation of xs.transaction_end is inconsistent with the implementation



Hi list,

The documentation of ``xs.transaction_end`` (from xen.lowlevel xs) doesn’t 
mention that the method accepts transaction handle 

#define xspy_transaction_end_doc "\n"                                   \
        "End the current transaction.\n"                                \
        "Attempts to commit the transaction unless abort is true.\n"    \
        " abort [int]: abort flag (default 0).\n"                       \
        "\n"                                                            \
        "Returns True on success, False if you need to try again.\n"    \
        "Raises xen.lowlevel.xs.Error on error.\n"                              
\
        "\n"

while the implementation clearly expects it [*]

    int abort = 0;
    char *thstr;

    if (!PyArg_ParseTupleAndKeywords(args, kwds, arg_spec, kwd_spec,
                                     &thstr, &abort))
        return NULL;


Regards,
Sergei

[*]: 
http://xenbits.xen.org/gitweb/?p=xen.git;a=blob_plain;f=tools/python/xen/lowlevel/xs/xs.c;hb=HEAD
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.