diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-09-30 23:35:18 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-26 05:32:41 +0000 |
commit | 379f57d907c0d2fc340d9e6914d1f567ab1f2993 (patch) | |
tree | aad4e7739829aba639d6e114892843fa5d525f6c /buildscripts | |
parent | f19a895fdbd5c3f09cc9a7d12a1e710562781697 (diff) | |
download | mongo-379f57d907c0d2fc340d9e6914d1f567ab1f2993.tar.gz |
SERVER-50396 mongosymb_multithread look for new element names
(cherry picked from commit 84494ea46f70d64e181042ed75a0118143b16881)
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/mongosymb_multithread.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/buildscripts/mongosymb_multithread.py b/buildscripts/mongosymb_multithread.py index adff70a1623..5833d082e94 100755 --- a/buildscripts/mongosymb_multithread.py +++ b/buildscripts/mongosymb_multithread.py @@ -21,7 +21,7 @@ def main(): options = parser.parse_args() # Remember the prologue between lines, - # Prologue defines the library ids referred to by each threadRecord line. + # Prologue defines the library ids referred to by each record line. prologue = None for line in sys.stdin: @@ -34,8 +34,12 @@ def main(): if "prologue" in attr: prologue = attr["prologue"] - if "threadRecord" in attr: - thread_record = attr["threadRecord"] + # "threadRecord" is an older name for "record". + # Accept either name. + for record_field_name in ("record", "threadRecord"): + if record_field_name not in attr: + continue + thread_record = attr[record_field_name] merged = {**thread_record, **prologue} output_fn = None |