From 796684c024bfd675072bc067289b55dba2f130db Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 3 Sep 2011 21:33:00 -0400 Subject: [PATCH] windows: fix comments, add logging Change-Id: I383ce8679828f91d013d1f98ea3d25c73a0399df Reviewed-on: http://gerrit.openafs.org/5356 Reviewed-by: Jeffrey Altman Tested-by: BuildBot --- src/WINNT/afsd/cm_conn.c | 2 +- src/WINNT/afsd/cm_dcache.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/WINNT/afsd/cm_conn.c b/src/WINNT/afsd/cm_conn.c index 146177523..958f8fdfc 100644 --- a/src/WINNT/afsd/cm_conn.c +++ b/src/WINNT/afsd/cm_conn.c @@ -1071,7 +1071,7 @@ long cm_ConnByMServers(cm_serverRef_t *serversp, cm_user_t *usersp, /* * search the list until we find the server * that failed last time. When we find it - * clear the error, skip it and try the one + * clear the error, skip it and try the next one * in the list. */ if (tsp == reqp->tokenIdleErrorServp) diff --git a/src/WINNT/afsd/cm_dcache.c b/src/WINNT/afsd/cm_dcache.c index 205bcbe46..b8158b5c3 100644 --- a/src/WINNT/afsd/cm_dcache.c +++ b/src/WINNT/afsd/cm_dcache.c @@ -334,10 +334,11 @@ long cm_BufWrite(void *vscp, osi_hyper_t *offsetp, long length, long flags, nbytes = save_nbytes; goto retry; } - - /* Prefer StoreData error over rx_EndCall error */ - if (code1 != 0) + /* Prefer rx_EndCall error over StoreData error */ + if (code1 != 0) { + osi_Log2(afsd_logp, "rx_EndCall converted 0x%x to 0x%x", code, code1); code = code1; + } } while (cm_Analyze(connp, userp, reqp, &scp->fid, &volSync, NULL, NULL, code)); code = cm_MapRPCError(code, reqp); -- 2.39.5