Windows: cm_BPlusDirBuildTree can fail
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 5 Dec 2009 15:53:03 +0000 (10:53 -0500)
committerJeffrey Altman <jaltman|account-1000011@unknown>
Tue, 8 Dec 2009 14:29:40 +0000 (06:29 -0800)
commit2bffe725c5ebb785257555286567f128e0911cb7
tree58f47267f94931003bdd2c50a2ff0dde75aab2d8
parent019ae5240691f27beaf583084fc81f4efb84b166
Windows: cm_BPlusDirBuildTree can fail

It is possible that cm_BPlusDirBuildTree can fail.  For example,
the server could be marked down after a callback is obtained
but before all of the directory data buffers have been fetched.
cm_BeginDirOp must check for the failure, destroy the tree,
and return the failure code to the caller.  Otherwise, a tree
with no entries may be created and marked with the current
data version.

LICENSE MIT

Change-Id: I26fbfceaf68389a1906797b12721c49172b027ec
Reviewed-on: http://gerrit.openafs.org/893
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_dir.c