[erlang-questions] Re: Change node name in mnesia

Vance Shipley vances@REDACTED
Mon Oct 18 19:29:31 CEST 2010


On Sat, Jul 03, 2010 at 09:09:31AM +0200, Dan Gudmundsson wrote:
}  Are you seeing those in the ets table?

Yes I do see the headers in the ets table:

  4> ets:i(foo).
  [...]
  <12  > {log_header,dcl_log,"1.0","4.4.10",'bar@REDACTED',{1287,322033,2 ...
  [...]

}  They should not be in the table, they are what they say the  header of
}  a TABLE.DCL file.
}  
}  Either you or I have some improvements to do :-)

I did another database migration today, changing long node name
to short, on R13B04 yesterday and experienced the same results.
These header records don't show up in the items passed through
mnesia:traverse_backup/6 so it doesn't appear to be something
I'm doing wrong.

I'm going to work on demonstrating the problem as simply as possible.

-- 
	-Vance

}  On Sat, Jul 3, 2010 at 12:28 AM, Vance Shipley <vances@REDACTED> wrote:
}  > Is it valid to have records in an mnesia table of this form:
}  >
}  >  {log_header,dcl_log,"1.0","4.4.10",'foo@REDACTED',{1266,113437,587068}},
}  >
}  > The tables seem to be working fine even though these entries are
}  > there which obviously do not have the correct OID for the table.
}  >
}  > What I'd like to understand is if I've broken the tables myself
}  > or if this type of thing is valid and I should just deal with
}  > them when traversing a table with mnesia:foldl/3.
}  >
}  >        -Vance
}  >
}  > On Sat, Feb 13, 2010 at 10:19:24PM -0500, Vance Shipley wrote:
}  > }  I used the example in the Mnesia User's Guide to backup
}  > }  and transform a database from a long node name to a short
}  > }  one.  That all seemed to go smoothly enough but now I'm
}  > }  noticing these strange records in my tables:
}  > }
}  > }     {log_header,dcl_log,"1.0","4.4.10",'foo@REDACTED',{1266,113437,587068}},
}  > }
}  > }  I discovered this using mnesia:foldl/3.  Is this normal
}  > }  or have I messed things up?


More information about the erlang-questions mailing list