fix parent pointer bug

git-svn-id: https://profuse.googlecode.com/svn/branches/v2@353 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
ksherlock
2011-02-27 01:32:35 +00:00
parent e68854ff58
commit efd5e7bd98
6 changed files with 230 additions and 145 deletions

View File

@@ -68,6 +68,10 @@ VolumeEntryPointer VolumeEntry::Open(Device::BlockDevicePointer device)
//ptr = new VolumeEntry(device));
ptr = MAKE_SHARED(VolumeEntry, device);
// set up the weak references from the file entry to this.
if (ptr) ptr->setParents();
return ptr;
}
@@ -78,9 +82,6 @@ VolumeEntryPointer VolumeEntry::Create(Device::BlockDevicePointer device, const
//ptr = new VolumeEntry(device, name);
ptr = MAKE_SHARED(VolumeEntry, device, name);
// set up the weak references from the file entry to this.
if (ptr) ptr->setParents();
return ptr;
}