in reply to Re: storable is_storing?
in thread storable is_storing?
ww,
I went with your first suggestion of locking and it indeed worked like a charm. My original train of thought was that it would be better if I checked the status to see if the file was in the middle of storing, and if it was, just throw out the secondary write requests because it is all fake data to begin with.
That turned out to be a bad idea any way. My script isn't written in a way that could properly use the is_storing method in the first place so that would have got me no where.
With the simple change of replacing 'store' to 'lock_store', all the corruption has faded away and to me, the code now smells like roses. :)
I appreciate you taking the time to help me out.
-Dave