[erlang-questions] is it a mensia bug?mnesia:load_textfile("/root/db4"). Error in line:61 of:"/root/db4" syntax error before: Ref
张俊峰
zjfhappy@REDACTED
Fri Jul 19 14:29:04 CEST 2013
thank you very much,
At 2013-07-17 15:50:52,"Håkan Mattsson" <hm@REDACTED> 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@REDACTED> wrote:
>> 1, i get a error here when load_textfile:
>> (ccmanager@REDACTED)1>
>> mnesia:load_textfile("/root/db-20130716173944").
>> Error in line:61 of:"/root/db-20130716173944" syntax error before: Ref
>> {error,read}
>> (ccmanager@REDACTED)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@REDACTED',<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@REDACTED',<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@REDACTED ~]#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@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130719/df6ba090/attachment.htm>
More information about the erlang-questions
mailing list