s4-prefixMap: split dsdb_schema_make_attid() function into read-only and
authorKamen Mazdrashki <kamenim@samba.org>
Tue, 26 Oct 2010 15:33:32 +0000 (18:33 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Tue, 26 Oct 2010 19:17:41 +0000 (22:17 +0300)
commit0fc2427224c2826e5ee0b09631ae77d0b08b5ba9
tree500d8d8c747eaa9d5e4d330117d5f91b5573e603
parent5e108fc5f94e6a08083f8852a59fc4b79b198af8
s4-prefixMap: split dsdb_schema_make_attid() function into read-only and

read-write functions.
dsdb_schema_make_attid() may change prefixMap implicitly
and this is not always desired behavior.
The problem was that
(1) callers had no control on this behavior
(2) callers had no way to know wheter prefixMap has been
    changed which can lead to hard to find bugs like
    prefixMap is changed in read operation
source4/dsdb/schema/schema_prefixmap.c