Comment 3 for bug 1691949

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/31940
Committed: http://github.com/Juniper/contrail-sandesh/commit/4074d8af7592a564ba1c55c23021cc95f105c6c1
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 4074d8af7592a564ba1c55c23021cc95f105c6c1
Author: Megh Bhatt <email address hidden>
Date: Sun May 21 00:52:14 2017 -0700

Introspect of daemons missing links to some request files

Global static initialization is used to populate a SandeshHttp
static map with the names of the sandesh IDL files that contain
requests for introspect for a daemon. The static declaration and
definition is done in _html.cpp. In order for the linker to include
the symbols in that translation unit a standalone int is also defined
in the file and used in _types.cpp. However the current usage was just
assigning another static variable this int and as a result the symbols
in the _html.cpp were not included and the map was not populated.
Changed the generated code to assign a value to the standalone int
as part of RequestFromHttp function so that symbols from the
_html.cpp translation units are pulled in.

Change-Id: Id5515bb75fab093fbc62bcebf8fecb5dbed2be9c
Closes-Bug: #1691605
Closes-Bug: #1691949