*** srichter has quit IRC | 00:53 | |
*** andrew_m has quit IRC | 00:54 | |
*** GaryPoster has quit IRC | 00:59 | |
*** benji_york has quit IRC | 01:10 | |
*** hazmat has joined #zope3-dev | 01:13 | |
*** J1m|away has quit IRC | 01:20 | |
*** srichter has joined #zope3-dev | 01:24 | |
*** hazmat has quit IRC | 01:26 | |
*** niemeyer has quit IRC | 01:34 | |
*** tarek_ has quit IRC | 01:54 | |
*** bradb has quit IRC | 01:56 | |
*** BjornT has quit IRC | 01:57 | |
*** tvon has quit IRC | 02:15 | |
*** tvon has joined #zope3-dev | 03:59 | |
*** tvon|desk has joined #zope3-dev | 04:08 | |
*** tvon2 has joined #zope3-dev | 04:12 | |
*** mgedmin has joined #zope3-dev | 04:47 | |
mgedmin | I need some help with transactions and ZODB | 04:48 |
---|---|---|
mgedmin | I'm trying to make my http request recorder thread-safe before committing it into trunk | 04:48 |
mgedmin | I'm trying to store data in a MappingStorage, because I want transactions | 04:48 |
mgedmin | I've copied RAMSessionDataStorage._getData almost verbatim | 04:49 |
mgedmin | after a request is processed, I open a new transaction, change an IOBTree in my mapping storage, and commit the transaction | 04:50 |
mgedmin | (in a loop that handles up to 10 ZODB conflict errors) | 04:50 |
mgedmin | problem: in my browser view I see stale data | 04:51 |
mgedmin | I need to refresh the page a couple of times until I see an up-to-date view | 04:51 |
mgedmin | adding connection.sync to _getData kinda helps, but apparently it also discards all changes made to the data structure in the current transaction | 04:52 |
mgedmin | this breaks my unit tests | 04:53 |
mgedmin | the actual code works, because it makes at most one change per transaction (adds a single entry, or clears the list) | 04:54 |
mgedmin | but it is a silly restriction to live with | 04:54 |
* mgedmin gives up and writes a nontransactional storage that uses locking for thread-safety | 05:29 | |
*** GaryPoster has joined #zope3-dev | 05:33 | |
*** mgedmin has quit IRC | 05:44 | |
*** projekt01 has left #zope3-dev | 05:57 | |
*** sm has joined #zope3-dev | 06:26 | |
*** watzo has joined #zope3-dev | 08:23 | |
*** watzo has quit IRC | 08:35 | |
*** d2m has quit IRC | 09:13 | |
*** tvon2 has quit IRC | 09:36 | |
*** tvon2 has joined #zope3-dev | 09:36 | |
*** Theuni has joined #zope3-dev | 10:15 | |
*** d2m has joined #zope3-dev | 10:36 | |
*** vlado has joined #zope3-dev | 11:11 | |
*** vlado is now known as vlado|lunch | 12:55 | |
*** ignas has quit IRC | 13:56 | |
*** vlado|lunch is now known as vlado | 14:11 | |
*** oferw has joined #zope3-dev | 14:14 | |
*** ignas has joined #zope3-dev | 14:23 | |
*** ignas_ has joined #zope3-dev | 14:23 | |
*** ignas has quit IRC | 14:23 | |
*** projekt01 has joined #zope3-dev | 14:31 | |
*** mgedmin has joined #zope3-dev | 14:58 | |
*** oferw has quit IRC | 15:14 | |
*** tvon has quit IRC | 15:23 | |
*** watzo has joined #zope3-dev | 15:39 | |
*** `anthony has joined #zope3-dev | 15:42 | |
*** tvon has joined #zope3-dev | 15:43 | |
*** SureshZ has joined #zope3-dev | 15:43 | |
*** projekt01 has left #zope3-dev | 15:58 | |
*** SureshZ has quit IRC | 17:14 | |
*** tvon has quit IRC | 17:15 | |
*** bradb has joined #zope3-dev | 17:25 | |
*** mgedmin has quit IRC | 17:26 | |
*** bskahan has joined #zope3-dev | 17:46 | |
*** tvon2_ has joined #zope3-dev | 18:03 | |
*** tvon2 has quit IRC | 18:03 | |
*** watzo has quit IRC | 18:11 | |
*** vlado has quit IRC | 18:35 | |
*** mohsen has quit IRC | 19:25 | |
*** mohsen has joined #zope3-dev | 19:38 | |
*** tvon2_ has quit IRC | 19:47 | |
*** tvon2__ has joined #zope3-dev | 19:47 | |
*** mohsen has quit IRC | 20:51 | |
*** mohsen has joined #zope3-dev | 20:52 | |
*** zagy has quit IRC | 21:17 | |
*** mohsen is now known as mohsen-away | 21:37 | |
*** zagy has joined #zope3-dev | 21:55 | |
*** oferw has joined #zope3-dev | 21:59 | |
*** bskahan has quit IRC | 22:09 | |
*** zagy has quit IRC | 22:17 | |
*** projekt01 has joined #zope3-dev | 23:16 | |
*** zagy has joined #zope3-dev | 23:47 | |
*** tvon has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!