LP#1468422 Auth efficiency improvements
authorBill Erickson <berickxx@gmail.com>
Wed, 27 Jan 2016 17:11:33 +0000 (12:11 -0500)
committerDan Wells <dbw2@calvin.edu>
Fri, 26 Feb 2016 14:18:32 +0000 (09:18 -0500)
commit7c376cb809cbf82f1fbf07305ad1664673e9258c
treed927c93b21edd96aebc22a901710b1c61b559c75
parent1a30c3250053f8b63011a188f15a4023544128e8
LP#1468422 Auth efficiency improvements

1. Adds an oils_utils function for retrieving the ID of the root org
unit.

2. Avoid multiple cstore/db lookups for the root org unit by caching the
ID at the process level.

3. Move permission checks from open-ils.storage to open-ils.cstore.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/include/openils/oils_utils.h
Open-ILS/src/c-apps/oils_auth.c
Open-ILS/src/c-apps/oils_utils.c