Changeset 513 for branches/client-2.0/src/ndpsmb.c
- Timestamp:
- Jan 7, 2011, 12:00:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-2.0/src/ndpsmb.c
r510 r513 506 506 507 507 /* Create a directory cache with expiration time 15 seconds and up to 32 listings cached. */ 508 dircache_create(&pRes->pdc, 1 0, 32);508 dircache_create(&pRes->pdc, 15, 32); 509 509 510 510 return rc; … … 2014 2014 debuglocal(9,"NdpFileClose in [%p] %d <%s>\n", pConn, pConn->file.fd, pConn->file.fd < 0 ? "!null!" : pConn->file.fname); 2015 2015 2016 // delete the dir cache2017 dircache_invalidate(pConn->file.fullname, pRes->pdc, 1);2018 2019 2016 do { 2020 2017 if (pConn->file.fd < 0) … … 2140 2137 debuglocal(9,"NdpFileWrite in [%p]\n", pConn); 2141 2138 2139 /* delete the dir cache 2140 this was moved from NdpFileClose() becasue if there are a lot files in the tree all are reread 2141 the problem when moved to here is, that last accessed time is not refreshed 2142 if this is needed, a new function needs to be done to update only one file in the cache */ 2143 dircache_invalidate(pConn->file.fullname, pRes->pdc, 1); 2144 2142 2145 do { 2143 2146 if (pConn->file.fd < 0)
Note:
See TracChangeset
for help on using the changeset viewer.