change name: needle id instead of needle key

This commit is contained in:
Chris Lu
2012-08-23 23:06:15 -07:00
parent 9f92f2779d
commit b820609088
3 changed files with 14 additions and 14 deletions

View File

@@ -52,10 +52,10 @@ func runFix(cmd *Command, args []string) bool {
offset := uint32(storage.SuperBlockSize)
for n != nil {
if *IsDebug {
log.Println("key", n.Key, "volume offset", offset, "data_size", n.Size, "length", length)
log.Println("key", n.Id, "volume offset", offset, "data_size", n.Size, "length", length)
}
if n.Size > 0 {
count, pe := nm.Put(n.Key, offset/8, n.Size)
count, pe := nm.Put(n.Id, offset/8, n.Size)
if *IsDebug {
log.Println("saved", count, "with error", pe)
}