aix-volser-fix-retry-20050413

FIXES 18240

destroy lock only after we gave up permanently
This commit is contained in:
Peter Somogyi 2005-04-14 02:59:34 +00:00 committed by Derrick Brashear
parent 40e03e078f
commit 9307de2fe7
2 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,6 @@ FSYNC_clientFinis(void)
close(FS_sd); close(FS_sd);
#endif #endif
FS_sd = -1; FS_sd = -1;
Lock_Destroy(&FSYNC_handler_lock);
} }
int int

View File

@ -325,6 +325,7 @@ VInitVolumePackage(ProgramType pt, int nLargeVnodes, int nSmallVnodes,
if (programType == volumeUtility && connect) { if (programType == volumeUtility && connect) {
if (!VConnectFS()) { if (!VConnectFS()) {
Log("Unable to connect to file server; aborted\n"); Log("Unable to connect to file server; aborted\n");
Lock_Destroy(&FSYNC_handler_lock);
exit(1); exit(1);
} }
} }