It seems bit syntax matching can't be used in match_spec, I just wonder why.<br><br>in erlang shell:<br>.............................<br><br>39> mnesia:dirty_select(main_dir, [{{k_v, <<"/root"/binary, "_"/binary>>, '_'}, [], ['$_']}]).<br>
** exception error: bad argument<br><br>..............................<br><br>47> ets:fun2ms(fun ({k_v, <<"/root", Res/binary>>, _}) -> Res end).<br>Error: fun head contains bit syntax matching of variable 'Res', which cannot be translated into match_spec<br>
{error,transform_error}<br>48><br><br>.............................<br><br><br>