On Tue, Nov 22, 2011 at 9:41 AM, Martin Hamant <[email protected]> wrote:
> removing for source id:
> 6d7d15f1-e4fb-4f92-b902-d9630470b3f5
> ref([("6d7d15f1-e4fb-4f92-b902-d9630470b3f5","http://martin-virtualbox/titles";)])
> ref([("6d7d15f1-e4fb-4f92-b902-d9630470b3f5","http://martin-virtualbox/titles";)])

OK, this is a bug. I could reproduce by using the primitive
list.remove(2,[2]) == [2]... Sorry about that. Please file a bug
report. My guess is that it relies on physical equality rather than
structural one.

In the meantime, here's a better implementation (straightforward, but
there might be typos...):
  list.remove_assoc =
   fun(x,l) -> list.fold_left(fun(l,y)->if fst(y)==x then l else
list.append([y],l) end,[],l)

> I am wondering if... sources_metadata_paths could be locked until the
> add_timeout finish !?

That's another story, but you're right to worry about it.
Unfortunately I don't have anything to propose for now... I wish there
would be a way to keep that kind of problem outside of liquidsoap
scripting.

Cheers,

David

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to