Commit ed267e8d7b67125e1af58fef8afe1b17a8464e2c

Authored by Benjamin Renard
1 parent bab9407b

Do not access to the cash table if we are outside of the lock system

Showing 1 changed file with 2 additions and 4 deletions   Show diff stats
src/SERVER/ncfileop.c
... ... @@ -37,16 +37,14 @@ int CloseOldFile(DD_Var_t *D)
37 37 if(D->Maxnc_rec > 0)
38 38 {
39 39 status = nc_close(D->ncID);
40   - char name[MAXFILENAME];
41   - strcpy(name,D->Cash.names[D->CurrCushN]);
42 40 Cache_ReleaseDataFileAccess(D);
43 41 if(status < 0)
44 42 {
45 43 D->LastFileStatus = DATAFILEERR;
46   - if(Verbose) fprintf(stderr,"CloseOldFile: file %s, error while closed, message : \n", name, nc_strerror(status));
  44 + if(Verbose) fprintf(stderr,"CloseOldFile: error while closed, message : \n", nc_strerror(status));
47 45 return DATAFILEERR;
48 46 }
49   - if(Verbose) fprintf(stderr,"CloseOldFile: file %s closed\n", name);
  47 + if(Verbose) fprintf(stderr,"CloseOldFile: file closed\n");
50 48 D->Maxnc_rec = 0;
51 49 }
52 50 else if(Verbose) fprintf(stderr,"CloseOldFile: Nothing To close\n");
... ...