Changeset 8444

Show
Ignore:
Timestamp:
07/16/10 19:36:02 (3 years ago)
Author:
nlmills
Message:

temporary workaround for problems with acache

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/cu-security-branch/src/client/sysint/sys-getattr.sm

    r8423 r8444  
    381381    if (sm_p->getattr.req_attrmask & PVFS_ATTR_CAPABILITY) 
    382382    { 
    383         if (sm_p->getattr.attr.capability.timeout == 0) 
    384         { 
    385             trimmed_mask |= PVFS_ATTR_CAPABILITY; 
    386             gossip_debug(GOSSIP_ACACHE_DEBUG, "Cache capability invalid...\n"); 
    387         } 
    388         if(PINT_util_get_current_time() > 
    389             (sm_p->getattr.attr.capability.timeout - CAP_TIMEOUT_BUFFER)) 
    390         { 
    391             trimmed_mask |= PVFS_ATTR_CAPABILITY; 
    392             gossip_debug(GOSSIP_ACACHE_DEBUG, "Cache capability timeout...\n"); 
    393         } 
    394     } 
     383        /* add back the capability flag */ 
     384        trimmed_mask |= PVFS_ATTR_CAPABILITY; 
     385    } 
     386 
     387    /* nlmills: TODO: don't accept the capability if it is about to 
     388     * time out. make use of CAP_TIMEOUT_BUFFER. 
     389     */ 
    395390   
    396391    /* trimmed_mask contains the list of attributes 
     
    410405                     trimmed_mask); 
    411406    if((missing_attrs == PVFS_ATTR_DATA_SIZE && size_status == 0) || 
     407        /* nlmills: TODO: dirty hack: XXX: remove me */ 
     408        (missing_attrs == PVFS_ATTR_META_MIRROR_DFILES) || 
    412409        (missing_attrs == 0)) 
    413410    {