1 |
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
2 |
|
|
3 |
|
* Document.pm (repo, prop_untainted, untainted_prop, save_prop, |
4 |
|
locked): New method. Introduced the concept of "tainted" such |
5 |
|
that we can access to the property in the locked code fragment |
6 |
|
without being afraid to update the property using old values. |
7 |
|
(get_or_create_graph_node): Updated to utilize |prop| family of |
8 |
|
method with locks. |
9 |
|
|
10 |
|
* Graph.pm (repo, lock, unlock): New methods. |
11 |
|
(add_nodes, create_node, schelling_update): Locks the database |
12 |
|
before the modifications. |
13 |
|
|
14 |
|
* Repository.pm (graph, get_document_by_id): New methods. |
15 |
|
|
16 |
|
* Node.pm (repo): New method. |
17 |
|
|
18 |
|
2009-09-21 Wakaba <wakaba@suika.fam.cx> |
19 |
|
|
20 |
* Document.pm (lock): Changed to use the $db->id_lock method to |
* Document.pm (lock): Changed to use the $db->id_lock method to |
21 |
obtain the lock object. |
obtain the lock object. |
22 |
|
|