Le 21/11/2011 22:39, David Baelde a écrit :
> Hi Martin,
>
> On Mon, Nov 21, 2011 at 4:45 PM, Martin Hamant<[email protected]> wrote:
>> sources_metadata_paths := list.remove_assoc(source.id(output),
>> !sources_metadata_paths) ; print(sources_metadata_paths)
> This should remove the corresponding item if there is one... did you
> try printing the list before remove_assoc?
>
> David
Yes, here is the output corresponding to the following code:
dyn_sources :=
list.append( [(uri,{ source.shutdown(s0) ;
source.shutdown(output) ; print("removing for source id:") ;
print(source.id(output)) ; print(sources_metadata_paths) ;
sources_metadata_paths := list.remove_assoc(source.id(output),
!sources_metadata_paths) ; print(sources_metadata_paths) ; delay :=
(-1.) })],
!dyn_sources )
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")])
I am wondering if... sources_metadata_paths could be locked until the
add_timeout finish !?
Because I can see that one more and last loop happens after the code
above is triggered...
------------------------------------------------------------------------------
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