GNOME Bugzilla – Bug 333266
Registry file writing rewrite
Last modified: 2006-04-27 12:09:13 UTC
As described on the list and in the comment in this patch: rewrite how we write replacement registry files, to avoid various race conditions and to handle failed writes sanely. Fixes serious problems in a) out-of-disk-space, and b) starting 3 or more gstreamer applications simultaneously when a registry rewrite is required.
Attachment to come.
Created attachment 60577 [details] [review]
Patch for registry writing.
Created attachment 60580 [details] [review]
Wim expressed concerns that the memory usage of this approach might be unreasonable on embedded systems.
I'm unconvinced (small embedded systems won't use the xml registry at all, medium sized embedded systems aren't going to have huge numbers of features/large registries, and large systems... well, still won't have huge numbers of features), but in the interests of getting the more serious issues addressed...
This version DOES have the possibility of leaving stale temp files around if we crash when writing the registry. I'm happy to commit either version, and/or take further comments.
bounded memory usage sounds better to me. I'm not too concerned with leaving many tmp files around.
Ok, committed version that doesn't use a temporary memory buffer.