Check-in [f6ecb0ed91]
Overview
Comment:Updated to not attempt to drop the reference count on the last home directory object until we're about to actually give up the reference
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f6ecb0ed9194ede44228753ea57a3952f1eb4341
User & Date: rkeene on 2014-11-10 07:17:22
Other Links: manifest | tags
Context
2014-11-10
19:19
Updated to correctly deal with the "latest" symlink check-in: a706ef58b8 user: rkeene tags: trunk
07:17
Updated to not attempt to drop the reference count on the last home directory object until we're about to actually give up the reference check-in: f6ecb0ed91 user: rkeene tags: trunk
07:11
Updated ownership/group and disabled all caching so that things are consistent (and slow!) check-in: 6e3b24c68c user: rkeene tags: trunk
Changes

Modified appfsd.c from [7148f823cb] to [a0dcafd0c9].

   424    424           }
   425    425   
   426    426   	fsuid = appfs_get_fsuid();
   427    427   
   428    428   	if (fsuid == last_fsuid && last_homedir_obj != NULL) {
   429    429   		homedir_obj = last_homedir_obj;
   430    430   	} else {
   431         -		if (last_homedir_obj != NULL) {
   432         -			Tcl_DecrRefCount(last_homedir_obj);
   433         -		}
   434         -
   435    431   		homedir = appfs_get_homedir(appfs_get_fsuid());
   436    432   
   437    433   		if (homedir == NULL) {
   438    434   			return(TCL_ERROR);
   439    435   		}
   440    436   
   441    437   		homedir_obj = Tcl_NewStringObj(homedir, -1);
   442    438   
   443    439   		free(homedir);
          440  +
          441  +		if (last_homedir_obj != NULL) {
          442  +			Tcl_DecrRefCount(last_homedir_obj);
          443  +		}
   444    444   
   445    445   		last_homedir_obj = homedir_obj;
   446    446   		last_fsuid = fsuid;
   447    447   
   448    448   		Tcl_IncrRefCount(last_homedir_obj);
   449    449   	}
   450    450