Windows: avoid deadlock if bulk error during enum
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 31 Dec 2011 21:04:27 +0000 (16:04 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 31 Dec 2011 21:22:35 +0000 (13:22 -0800)
commite2b42e2cde170102c07937d55db376416cb3965c
tree6af7c402a07f9553d7ac1f6f7907bc652ee26bdd
parent36657b8505e3b232158a63b4ecad12fa59548b3a
Windows: avoid deadlock if bulk error during enum

If the cache manager has a valid callback at the start of a
directory enumeration, the service can begin a bulk status rpc
which can fail.  The error code from the rpc is never propagated
to the caller, therefore the caller loops forever attempting to
complete the enumeration with status info.

Fix it by returning the error.

Change-Id: I53892ddf338152d53c533ef31c3b1047c96bfbf2
Reviewed-on: http://gerrit.openafs.org/6461
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsd/cm_btree.c