Fix - if file can be opened but cannot be read for some reason - ignore it,
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 11 Oct 2005 13:02:17 +0000 (13:02 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 11 Oct 2005 13:02:17 +0000 (13:02 +0000)
and do not exit with error.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@109 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/opensm/user/opensm/osm_db_files.c

index 2d96469..0b2c130 100644 (file)
@@ -333,7 +333,6 @@ osm_db_restore(
                    "osm_db_restore: ERR 6904: "
                    " Fail to get key from line:%u : %s\n",
                    line_num, sLine);
-          status = 1;
           goto EndParsing;
         }
 
@@ -415,6 +414,7 @@ osm_db_restore(
 
  Exit:
   cl_spinlock_release( &p_domain_imp->lock );
+  OSM_LOG_EXIT( p_log );
   return status;
 }