]> git.neil.brown.name Git - LaFS.git/commit
Delay hashing of index blocks until they are incorporated.
authorNeilBrown <neilb@suse.de>
Tue, 22 Jun 2010 02:13:45 +0000 (12:13 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 Jun 2010 20:59:46 +0000 (06:59 +1000)
commit9457dc1c51b17c9ef8651b681845f2ba88010e46
tree4de911dfa31d516d630f7a826aab5d7cbd58de8f
parentdd6496697f9cb8e518d4409859e22936f17de0fc
Delay hashing of index blocks until they are incorporated.

We don't need an index block in the hash table until its
address is in the parent, as until then we will never try a lookup.

And it is good to delay it as it is possible for there to be two
blocks with the same address, one that is empty and thus ignored
mostly, and one that has since split of an earlier child.
While this is unlikely, we don't want that split-off block to
appear in the hash table until both have been incorporated.

Signed-off-by: NeilBrown <neilb@suse.de>
index.c
modify.c