Remove warning "find_preferred_connection: no connection and !create" 64/12964/2
authorIan Wienand <iwienand@redhat.com>
Tue, 20 Mar 2018 03:01:43 +0000 (14:01 +1100)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 6 Apr 2018 01:05:19 +0000 (21:05 -0400)
find_preferred_connection() is called with !create via
afs_ConnByHost->afs_ConnBySA to determine if there is a cached
connection available.  Don't warn, as it will next be called with the
create flag to create the connection anyway.

Change-Id: I02c2150a04ef20c54da793926fb402b946311f9a
Reviewed-on: https://gerrit.openafs.org/12964
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/afs/afs_conn.c

index 92e560c..fa6ed4d 100644 (file)
@@ -103,7 +103,6 @@ find_preferred_connection(struct sa_conn_vector *xcv, int create)
     } /* for cix < CVEC_LEN */
 
     if (bix < 0) {
-        afs_warn("find_preferred_connection: no connection and !create\n");
         tc = NULL;
         goto out;
     }