From: Robert Varga Date: Wed, 30 Aug 2017 14:28:28 +0000 (+0200) Subject: BUG-9054: do not use BatchedModifications needlessly X-Git-Tag: release/oxygen~116 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=88a6b2f0a11ac2318795b0e9124ac596a386304a;hp=88a6b2f0a11ac2318795b0e9124ac596a386304a BUG-9054: do not use BatchedModifications needlessly Transaction identifier, which is a required parameter for BatchedModifications is a resource tracked on the backend and is assumed to be allocated contiguously. Using BatchedModifications to transport only a list of modifications means we are allocating transactions IDs which we then never use. This patch reworks the logic so it tracks modifications in a list and allocates BatchedModifications only when we are ready to actually commit something. Change-Id: I3f71511cfd68e96e80790e69d28d083f195e5e12 Signed-off-by: Robert Varga (cherry picked from commit 71a4b6377ba598b18c64b89b6b16538751d2d116) ---