[Mulgara-dev] Can someone check this....

Paul Gearon gearon at ieee.org
Thu May 1 23:33:11 UTC 2008


I'm looking at the code in
DatabaseOperationContext.findModelTypeURI(long model).

This method uses systemModelCacheMap to look up the model type on line
462. Then later on, if the model type is found it gets stored in this
cache on line 491.

I just want to check that this map is not updated when a graph(model)
gets dropped or created? If so, then this is a bug. It won't show up
very often, as you'd need to look up a graph with a particular type,
then drop it, then create it again with a differing type.

The trick here, is that this class seems unaware of when a graph gets
created or dropped.  There is a doModel method, but I think it is dead
code. There is a doModify method in ModifyModelOperation, but this
method only uses DatabaseContext to get the canonical graph name, and
to get the resolver for that graph, so it can call
resolver.modifyModel() directly.

Or am I misreading something?

Paul



More information about the Mulgara-dev mailing list