allow per-session overriding of internal flags
It can be handy during record ingest to selectively disable
parts of the ingest chain, for example to allow for parallel
record loads, while not interfering with normal cataloging. This
patch provides a mechanism for per-database-connection overriding
of the enabled state of config.internal_flag values. Three
new database functions are defined:
* evergreen.override_internal_flag_status(flag, enabled)
Override the enabled status of the specified flag; this override
is visible only to the database connection that invokes this function.
* evergreen.clear_internal_flag_override(flag)
Remove the per-session override on the specified flag.
* evergreen.internal_flag_set(flag)
Returns true if the flag exists and is enabled, taking any per-session
overrides into account. The intention is that all internal
flag queries should use this wrapper function.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>