<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">thank you very much,<br><pre><br><br>At 2013-07-17 15:50:52,"Håkan Mattsson" <hm@tail-f.com> wrote:
>The format of the text file is plain Erlang terms. It cannot cope with
>references and pids. Your text file contains a reference.
>
>Do not use mnesia:dump_to_textfile/ and mnesia:load_textfile/1. They
>should have been deprecated years ago.
>
>/Håkan
>
>On Wed, Jul 17, 2013 at 4:46 AM, 张俊峰 <zjfhappy@126.com> wrote:
>> 1, i get a error here when load_textfile:
>> (ccmanager@192.168.1.104)1>
>> mnesia:load_textfile("/root/db-20130716173944").
>> Error in line:61 of:"/root/db-20130716173944" syntax error before: Ref
>> {error,read}
>> (ccmanager@192.168.1.104)2>
>>
>> 2, and the db file is follow here with line number:
>> 57 {vpool,"c7be3db1-0176-4efb-8676-47286ef2629d",null,<<"asfdf_根">>,0,0,
>> 58 1373967539,null,0,0,0,
>> 59 ["192.168.1.104","192.168.1.105","192.168.1.106"],
>> 60 []}.
>> 61
>> {task,"6c6ecf49-20b6-438c-82e5-daca138fe645",#Ref<0.0.0.238759>,image_to_vm,
>> 62 'ccagent@192.168.1.105',<10230.1586.0>,1373967277,1373967278,
>> 63 edog_task_h,
>> 64 [{diskid,"ec46d38a-679a-41e3-9a75-f113f93eb33c"}],
>> 65 [{ok,ok}],
>> 66 true}.
>> 67
>> {task,"79f136d5-53e3-4b70-ac80-0ac1943fb4fa",#Ref<0.0.0.253168>,image_to_vm,
>> 68
>> 'ccagent@192.168.1.106',<10231.877.0>,1373967323,1373967324,edog_task_h,
>> 69 [{diskid,"f9f474c2-3277-4b93-87fe-bcd71661f763"}],
>> 70 [{ok,ok}],
>> 71 true}.
>>
>> 3,
>> the erl version is :
>> [root@datacenter1.rack1.node1 ~]#erl
>> Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:2:2] [async-threads:0]
>> [hipe] [kernel-poll:false]
>>
>> Eshell V5.9.1 (abort with ^G)
>>>
>>
>> is this a mensia bug?
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@erlang.org
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
</pre></div>