get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1529528/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1529528,
    "url": "http://patchwork.ozlabs.org/api/patches/1529528/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20210917171739.1060303-2-i.maximets@ovn.org/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20210917171739.1060303-2-i.maximets@ovn.org>",
    "list_archive_url": null,
    "date": "2021-09-17T17:17:38",
    "name": "[ovs-dev,v2,1/2] ovsdb-data: Optimize union of sets.",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "2ff6b99d1216a3f96af63f13cef71fb370e700d1",
    "submitter": {
        "id": 76798,
        "url": "http://patchwork.ozlabs.org/api/people/76798/",
        "name": "Ilya Maximets",
        "email": "i.maximets@ovn.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20210917171739.1060303-2-i.maximets@ovn.org/mbox/",
    "series": [
        {
            "id": 262864,
            "url": "http://patchwork.ozlabs.org/api/series/262864/",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=262864",
            "date": "2021-09-17T17:17:37",
            "name": "ovsdb: Optimize set operations.",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/262864/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1529528/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/1529528/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ovs-dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
        "Received": [
            "from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4HB0yW65S7z9sSn\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 18 Sep 2021 03:17:55 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp2.osuosl.org (Postfix) with ESMTP id 3A09940782;\n\tFri, 17 Sep 2021 17:17:53 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n\tby localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id GIiBske_OM5F; Fri, 17 Sep 2021 17:17:51 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp2.osuosl.org (Postfix) with ESMTPS id 7E8D94077E;\n\tFri, 17 Sep 2021 17:17:50 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 52B30C000F;\n\tFri, 17 Sep 2021 17:17:50 +0000 (UTC)",
            "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 1E9F7C000F\n for <ovs-dev@openvswitch.org>; Fri, 17 Sep 2021 17:17:49 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id F1C1B61BD2\n for <ovs-dev@openvswitch.org>; Fri, 17 Sep 2021 17:17:48 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id VNlyubhPyma7 for <ovs-dev@openvswitch.org>;\n Fri, 17 Sep 2021 17:17:48 +0000 (UTC)",
            "from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net\n [217.70.183.195])\n by smtp3.osuosl.org (Postfix) with ESMTPS id A260C60B85\n for <ovs-dev@openvswitch.org>; Fri, 17 Sep 2021 17:17:46 +0000 (UTC)",
            "(Authenticated sender: i.maximets@ovn.org)\n by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 36E5A60004;\n Fri, 17 Sep 2021 17:17:44 +0000 (UTC)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.8.0",
        "From": "Ilya Maximets <i.maximets@ovn.org>",
        "To": "ovs-dev@openvswitch.org",
        "Date": "Fri, 17 Sep 2021 19:17:38 +0200",
        "Message-Id": "<20210917171739.1060303-2-i.maximets@ovn.org>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<20210917171739.1060303-1-i.maximets@ovn.org>",
        "References": "<20210917171739.1060303-1-i.maximets@ovn.org>",
        "MIME-Version": "1.0",
        "Cc": "Ilya Maximets <i.maximets@ovn.org>, Dumitru Ceara <dceara@redhat.com>",
        "Subject": "[ovs-dev] [PATCH v2 1/2] ovsdb-data: Optimize union of sets.",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "Current algorithm of ovsdb_datum_union looks like this:\n\n  for-each atom in b:\n      if not bin_search(a, atom):\n          push(a, clone(atom))\n  quicksort(a)\n\nSo, the complexity looks like this:\n\n   Nb * log2(Na)   +    Nb     +   (Na + Nb) * log2(Na + Nb)\n   Comparisons        clones       Comparisons for quicksort\n   for search\n\novsdb_datum_union() is heavily used in database transactions while\nnew element is added to a set.  For example, if new logical switch\nport is added to a logical switch in OVN.  This is a very common\nuse case where CMS adds one new port to an existing switch that\nalready has, let's say, 100 ports.  For this case ovsdb-server will\nhave to perform:\n\n   1 * log2(100)  + 1 clone + 101 * log2(101)\n   Comparisons                Comparisons for\n   for search                   quicksort.\n       ~7           1            ~707\n   Roughly 714 comparisons of atoms and 1 clone.\n\nSince binary search can give us position, where new atom should go\n(it's the 'low' index after the search completion) for free, the\nlogic can be re-worked like this:\n\n  copied = 0\n  for-each atom in b:\n      desired_position = bin_search(a, atom)\n      push(result, a[ copied : desired_position - 1 ])\n      copied = desired_position\n      push(result, clone(atom))\n  push(result, a[ copied : Na ])\n  swap(a, result)\n\nComplexity of this schema:\n\n   Nb * log2(Na)   +    Nb     +         Na\n   Comparisons        clones       memory copy on push\n   for search\n\n'swap' is just a swap of a few pointers.  'push' is not a 'clone',\nbut a simple memory copy of 'union ovsdb_atom'.\n\nIn general, this schema substitutes complexity of a quicksort\nwith complexity of a memory copy of Na atom structures, where we're\nnot even copying strings that these atoms are pointing to.\n\nComplexity in the example above goes down from 714 comparisons\nto 7 comparisons and memcpy of 100 * sizeof (union ovsdb_atom) bytes.\n\nGeneral complexity of a memory copy should always be lower than\ncomplexity of a quicksort, especially because these copies usually\nperformed in bulk, so this new schema should work faster for any input.\n\nAll in all, this change allows to execute several times more\ntransactions per second for transactions that adds new entries to sets.\n\nAlternatively, union can be implemented as a linear merge of two\nsorted arrays, but this will result in O(Na) comparisons, which\nis more than Nb * log2(Na) in common case, since Na is usually\nfar bigger than Nb.  Linear merge will also mean per-atom memory\ncopies instead of copying in bulk.\n\n'replace' functionality of ovsdb_datum_union() had no users, so it\njust removed.  But it can easily be added back if needed in the future.\n\nSigned-off-by: Ilya Maximets <i.maximets@ovn.org>\n---\n lib/db-ctl-base.c | 10 +++---\n lib/ovsdb-data.c  | 84 ++++++++++++++++++++++++++++++++---------------\n lib/ovsdb-data.h  |  6 ++--\n lib/ovsdb-idl.c   |  8 ++---\n ovsdb/mutation.c  |  2 +-\n vswitchd/bridge.c |  9 +++--\n 6 files changed, 77 insertions(+), 42 deletions(-)",
    "diff": "diff --git a/lib/db-ctl-base.c b/lib/db-ctl-base.c\nindex 77cc76a9f..f69868702 100644\n--- a/lib/db-ctl-base.c\n+++ b/lib/db-ctl-base.c\n@@ -321,7 +321,7 @@ get_row_by_id(struct ctl_context *ctx,\n             const union ovsdb_atom key_atom\n                 = { .string = CONST_CAST(char *, id->key) };\n             unsigned int i = ovsdb_datum_find_key(datum, &key_atom,\n-                                                  OVSDB_TYPE_STRING);\n+                                                  OVSDB_TYPE_STRING, NULL);\n             name = i == UINT_MAX ? NULL : &datum->values[i];\n         }\n         if (!name) {\n@@ -820,7 +820,7 @@ check_condition(const struct ovsdb_idl_table_class *table,\n         }\n \n         idx = ovsdb_datum_find_key(have_datum,\n-                                   &want_key, column->type.key.type);\n+                                   &want_key, column->type.key.type, NULL);\n         if (idx == UINT_MAX && !is_set_operator(operator)) {\n             retval = false;\n         } else {\n@@ -993,7 +993,7 @@ cmd_get(struct ctl_context *ctx)\n             }\n \n             idx = ovsdb_datum_find_key(datum, &key,\n-                                       column->type.key.type);\n+                                       column->type.key.type, NULL);\n             if (idx == UINT_MAX) {\n                 if (must_exist) {\n                     ctl_error(\n@@ -1375,7 +1375,7 @@ set_column(const struct ovsdb_idl_table_class *table,\n         ovsdb_atom_destroy(&value, column->type.value.type);\n \n         ovsdb_datum_union(&datum, ovsdb_idl_read(row, column),\n-                          &column->type, false);\n+                          &column->type);\n         ovsdb_idl_txn_verify(row, column);\n         ovsdb_idl_txn_write(row, column, &datum);\n     } else {\n@@ -1514,7 +1514,7 @@ cmd_add(struct ctl_context *ctx)\n             ovsdb_datum_destroy(&old, &column->type);\n             return;\n         }\n-        ovsdb_datum_union(&old, &add, type, false);\n+        ovsdb_datum_union(&old, &add, type);\n         ovsdb_datum_destroy(&add, type);\n     }\n     if (old.n > type->n_max) {\ndiff --git a/lib/ovsdb-data.c b/lib/ovsdb-data.c\nindex c145f5ad9..11bf95fed 100644\n--- a/lib/ovsdb-data.c\n+++ b/lib/ovsdb-data.c\n@@ -799,7 +799,8 @@ ovsdb_atom_check_constraints(const union ovsdb_atom *atom,\n                              const struct ovsdb_base_type *base)\n {\n     if (base->enum_\n-        && ovsdb_datum_find_key(base->enum_, atom, base->type) == UINT_MAX) {\n+        && ovsdb_datum_find_key(base->enum_, atom,\n+                                base->type, NULL) == UINT_MAX) {\n         struct ovsdb_error *error;\n         struct ds actual = DS_EMPTY_INITIALIZER;\n         struct ds valid = DS_EMPTY_INITIALIZER;\n@@ -1787,11 +1788,13 @@ ovsdb_datum_compare_3way(const struct ovsdb_datum *a,\n /* If 'key' is one of the keys in 'datum', returns its index within 'datum',\n  * otherwise UINT_MAX.  'key.type' must be the type of the atoms stored in the\n  * 'keys' array in 'datum'.\n+ * If 'key' is not found, index where it should have been returned in '*pos'.\n  */\n unsigned int\n ovsdb_datum_find_key(const struct ovsdb_datum *datum,\n                      const union ovsdb_atom *key,\n-                     enum ovsdb_atomic_type key_type)\n+                     enum ovsdb_atomic_type key_type,\n+                     unsigned int *pos)\n {\n     unsigned int low = 0;\n     unsigned int high = datum->n;\n@@ -1806,6 +1809,9 @@ ovsdb_datum_find_key(const struct ovsdb_datum *datum,\n             return idx;\n         }\n     }\n+    if (pos) {\n+        *pos = low;\n+    }\n     return UINT_MAX;\n }\n \n@@ -1821,7 +1827,7 @@ ovsdb_datum_find_key_value(const struct ovsdb_datum *datum,\n                            const union ovsdb_atom *value,\n                            enum ovsdb_atomic_type value_type)\n {\n-    unsigned int idx = ovsdb_datum_find_key(datum, key, key_type);\n+    unsigned int idx = ovsdb_datum_find_key(datum, key, key_type, NULL);\n     if (idx != UINT_MAX\n         && value_type != OVSDB_TYPE_VOID\n         && !ovsdb_atom_equals(&datum->values[idx], value, value_type)) {\n@@ -1948,38 +1954,64 @@ ovsdb_datum_add_unsafe(struct ovsdb_datum *datum,\n     }\n }\n \n+/* Adds 'n' atoms starting from index 'start_idx' from 'src' to the end of\n+ * 'dst'.  'dst' should have enough memory allocated to hold the additional\n+ * 'n' atoms.  Atoms are not cloned, i.e. 'dst' will reference the same data.\n+ * Caller also should take care of the result being sorted. */\n+static void\n+ovsdb_datum_push_unsafe(struct ovsdb_datum *dst,\n+                        const struct ovsdb_datum *src,\n+                        unsigned int start_idx, unsigned int n,\n+                        const struct ovsdb_type *type)\n+{\n+    memcpy(&dst->keys[dst->n], &src->keys[start_idx], n * sizeof src->keys[0]);\n+    if (type->value.type != OVSDB_TYPE_VOID) {\n+        memcpy(&dst->values[dst->n], &src->values[start_idx],\n+               n * sizeof src->values[0]);\n+    }\n+    dst->n += n;\n+}\n+\n void\n ovsdb_datum_union(struct ovsdb_datum *a, const struct ovsdb_datum *b,\n-                  const struct ovsdb_type *type, bool replace)\n+                  const struct ovsdb_type *type)\n {\n-    unsigned int n;\n-    size_t bi;\n+    struct ovsdb_datum result;\n+    unsigned int copied, pos;\n+    size_t ai, bi;\n \n-    n = a->n;\n-    for (bi = 0; bi < b->n; bi++) {\n-        unsigned int ai;\n+    ovsdb_datum_init_empty(&result);\n+    ovsdb_datum_reallocate(&result, type, a->n + b->n);\n \n-        ai = ovsdb_datum_find_key(a, &b->keys[bi], type->key.type);\n-        if (ai == UINT_MAX) {\n-            if (n == a->n) {\n-                ovsdb_datum_reallocate(a, type, a->n + (b->n - bi));\n-            }\n-            ovsdb_atom_clone(&a->keys[n], &b->keys[bi], type->key.type);\n-            if (type->value.type != OVSDB_TYPE_VOID) {\n-                ovsdb_atom_clone(&a->values[n], &b->values[bi],\n-                                 type->value.type);\n-            }\n-            n++;\n-        } else if (replace && type->value.type != OVSDB_TYPE_VOID) {\n-            ovsdb_atom_destroy(&a->values[ai], type->value.type);\n-            ovsdb_atom_clone(&a->values[ai], &b->values[bi],\n+    copied = 0;\n+    for (bi = 0; bi < b->n; bi++) {\n+        ai = ovsdb_datum_find_key(a, &b->keys[bi], type->key.type, &pos);\n+        if (ai != UINT_MAX) {\n+            /* Atom with the same key already exists. */\n+            continue;\n+        }\n+        if (pos > copied) {\n+            /* Need to copy some atoms from 'a' first. */\n+            ovsdb_datum_push_unsafe(&result, a, copied, pos - copied, type);\n+            copied = pos;\n+        }\n+        /* Inserting new atom from 'b'. */\n+        ovsdb_atom_clone(&result.keys[result.n], &b->keys[bi], type->key.type);\n+        if (type->value.type != OVSDB_TYPE_VOID) {\n+            ovsdb_atom_clone(&result.values[result.n], &b->values[bi],\n                              type->value.type);\n         }\n+        result.n++;\n     }\n-    if (n != a->n) {\n-        a->n = n;\n-        ovs_assert(!ovsdb_datum_sort(a, type->key.type));\n+    if (a->n > copied) {\n+        /* Copying remaining atoms. */\n+        ovsdb_datum_push_unsafe(&result, a, copied, a->n - copied, type);\n     }\n+    /* All atoms are copied now. */\n+    a->n = 0;\n+\n+    ovsdb_datum_swap(&result, a);\n+    ovsdb_datum_destroy(&result, type);\n }\n \n void\ndiff --git a/lib/ovsdb-data.h b/lib/ovsdb-data.h\nindex c5a80ee39..a580cd2bd 100644\n--- a/lib/ovsdb-data.h\n+++ b/lib/ovsdb-data.h\n@@ -211,7 +211,8 @@ bool ovsdb_datum_equals(const struct ovsdb_datum *,\n /* Search. */\n unsigned int ovsdb_datum_find_key(const struct ovsdb_datum *,\n                                   const union ovsdb_atom *key,\n-                                  enum ovsdb_atomic_type key_type);\n+                                  enum ovsdb_atomic_type key_type,\n+                                  unsigned int *pos);\n unsigned int ovsdb_datum_find_key_value(const struct ovsdb_datum *,\n                                         const union ovsdb_atom *key,\n                                         enum ovsdb_atomic_type key_type,\n@@ -227,8 +228,7 @@ bool ovsdb_datum_excludes_all(const struct ovsdb_datum *,\n                               const struct ovsdb_type *);\n void ovsdb_datum_union(struct ovsdb_datum *,\n                        const struct ovsdb_datum *,\n-                       const struct ovsdb_type *,\n-                       bool replace);\n+                       const struct ovsdb_type *);\n void ovsdb_datum_subtract(struct ovsdb_datum *a,\n                           const struct ovsdb_type *a_type,\n                           const struct ovsdb_datum *b,\ndiff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c\nindex d3caccec8..d9b0993f6 100644\n--- a/lib/ovsdb-idl.c\n+++ b/lib/ovsdb-idl.c\n@@ -2842,7 +2842,7 @@ ovsdb_idl_txn_extract_mutations(struct ovsdb_idl_row *row,\n                     new_datum = map_op_datum(map_op);\n                     pos = ovsdb_datum_find_key(old_datum,\n                                                &new_datum->keys[0],\n-                                               key_type);\n+                                               key_type, NULL);\n                     if (ovsdb_atom_equals(&new_datum->values[0],\n                                           &old_datum->values[pos],\n                                           value_type)) {\n@@ -2854,7 +2854,7 @@ ovsdb_idl_txn_extract_mutations(struct ovsdb_idl_row *row,\n                     unsigned int pos;\n                     pos = ovsdb_datum_find_key(old_datum,\n                                                &map_op_datum(map_op)->keys[0],\n-                                               key_type);\n+                                               key_type, NULL);\n                     if (pos == UINT_MAX) {\n                         /* No key to delete.  Move on to next update. */\n                         VLOG_WARN(\"Trying to delete a key that doesn't \"\n@@ -2953,7 +2953,7 @@ ovsdb_idl_txn_extract_mutations(struct ovsdb_idl_row *row,\n                     unsigned int pos;\n                     pos = ovsdb_datum_find_key(old_datum,\n                                                &set_op_datum(set_op)->keys[0],\n-                                               key_type);\n+                                               key_type, NULL);\n                     if (pos == UINT_MAX) {\n                         /* No key to delete.  Move on to next update. */\n                         VLOG_WARN(\"Trying to delete a key that doesn't \"\n@@ -4131,7 +4131,7 @@ ovsdb_idl_txn_write_partial_map(const struct ovsdb_idl_row *row_,\n     /* Find out if this is an insert or an update. */\n     key_type = column->type.key.type;\n     old_datum = ovsdb_idl_read(row, column);\n-    pos = ovsdb_datum_find_key(old_datum, &datum->keys[0], key_type);\n+    pos = ovsdb_datum_find_key(old_datum, &datum->keys[0], key_type, NULL);\n     op_type = pos == UINT_MAX ? MAP_OP_INSERT : MAP_OP_UPDATE;\n \n     ovsdb_idl_txn_add_map_op(row, column, datum, op_type);\ndiff --git a/ovsdb/mutation.c b/ovsdb/mutation.c\nindex 56edc5f00..03d1c3499 100644\n--- a/ovsdb/mutation.c\n+++ b/ovsdb/mutation.c\n@@ -383,7 +383,7 @@ ovsdb_mutation_set_execute(struct ovsdb_row *row,\n             break;\n \n         case OVSDB_M_INSERT:\n-            ovsdb_datum_union(dst, arg, dst_type, false);\n+            ovsdb_datum_union(dst, arg, dst_type);\n             error = ovsdb_mutation_check_count(dst, dst_type);\n             break;\n \ndiff --git a/vswitchd/bridge.c b/vswitchd/bridge.c\nindex cb7c5cb76..c7a7e55e5 100644\n--- a/vswitchd/bridge.c\n+++ b/vswitchd/bridge.c\n@@ -4229,7 +4229,8 @@ bridge_configure_aa(struct bridge *br)\n         union ovsdb_atom atom;\n \n         atom.integer = m->isid;\n-        if (ovsdb_datum_find_key(mc, &atom, OVSDB_TYPE_INTEGER) == UINT_MAX) {\n+        if (ovsdb_datum_find_key(mc, &atom,\n+                                 OVSDB_TYPE_INTEGER, NULL) == UINT_MAX) {\n             VLOG_INFO(\"Deleting isid=%\"PRIu32\", vlan=%\"PRIu16,\n                       m->isid, m->vlan);\n             bridge_aa_mapping_destroy(m);\n@@ -4826,7 +4827,8 @@ queue_ids_include(const struct ovsdb_datum *queues, int64_t target)\n     union ovsdb_atom atom;\n \n     atom.integer = target;\n-    return ovsdb_datum_find_key(queues, &atom, OVSDB_TYPE_INTEGER) != UINT_MAX;\n+    return ovsdb_datum_find_key(queues, &atom,\n+                                OVSDB_TYPE_INTEGER, NULL) != UINT_MAX;\n }\n \n static void\n@@ -5020,7 +5022,8 @@ bridge_configure_mirrors(struct bridge *br)\n         union ovsdb_atom atom;\n \n         atom.uuid = m->uuid;\n-        if (ovsdb_datum_find_key(mc, &atom, OVSDB_TYPE_UUID) == UINT_MAX) {\n+        if (ovsdb_datum_find_key(mc, &atom,\n+                                 OVSDB_TYPE_UUID, NULL) == UINT_MAX) {\n             mirror_destroy(m);\n         }\n     }\n",
    "prefixes": [
        "ovs-dev",
        "v2",
        "1/2"
    ]
}