show children in describe

This commit is contained in:
Brad Fitzpatrick 2011-06-11 10:12:39 -07:00
parent 60e3fa2574
commit 42d80271d8
1 changed files with 18 additions and 0 deletions

View File

@ -316,6 +316,24 @@ claimLoop:
dm["size"] = size
}
}
// Resolve children
if dmap != nil {
if member, ok := attr["camliMember"].([]string); ok && len(member) > 0 {
wg := new(sync.WaitGroup)
for _, member := range member {
membr := blobref.Parse(member)
if membr != nil {
wg.Add(1)
go func() {
sh.populatePermanodeFields(dmap(membr), membr, signer, dmap)
wg.Done()
}()
}
}
wg.Wait()
}
}
}
const camliTypePrefix = "application/json; camliType="