Date: 2008-11-26 06:00 pm (UTC)
torkell: (Default)
From: [personal profile] torkell
It's in commercial code so I can't really post the actual code. In essence, there's a list of versioned items that one thread keeps track of. That thread populates the list with the existing items when it starts. Another thread uses this list to work whether an item exists (and what version it is), or if it needs to create the item. If it creates the item, it always creates the latest version of it (which has a different name to older versions). The list is fully synchronised, but the thread startup wasn't. This meant that you could get two of the same item but with different versions, which horribly confused code in a completely different module.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

January 2026

S M T W T F S
     123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 7th, 2026 10:49 pm
Powered by Dreamwidth Studios