-
Committer:
John Arbash Meinel
-
Date:
2009-06-08 17:29:47 UTC
-
mto:
This revision was merged to the branch mainline in
revision
4461.
-
Revision ID:
john@arbash-meinel.com-20090608172947-r9hucea21l7mse3m
Change CHKMap.from_dict to create a LeafNode and split it.
As opposed to using multiple calls to .map().
There were a few edge cases that needed to be fixed.
Such as:
1) setting self._raw_size
2) LeafNode.map() needed to properly handle when one of its child nodes also split.
3) Update CHK1.apply_inventory_by_delta to use this new function when appropriate
4) For now from_dict() continues to do it both ways, just to make sure it gives
correct results.