CVSROOT:        /cvs/gnome
Module name:    yarrr
Changes by:     alexl   05/02/09 13:10:55

Modified files:
        .              : ChangeLog 
        src/org/gnome/yarrr/tests: TestInitializer.java DBUsingTest.java 
                                   TopicTests.java 
        src/org/gnome/yarrr/xmlrpc: DefaultMethods.java 
        src/org/gnome/yarrr: Message.java Topic.java Topic.hbm.xml 
        client/yarrr   : topic_view.py 
        src/org/gnome/yarrr/hibernate: HibernateUtil.java 
        Documentation  : Setting up Tomcat.txt 

Log message:
2005-02-09  Alexander Larsson  <[EMAIL PROTECTED]>

* client/yarrr/topic_view.py:
* src/org/gnome/yarrr/Topic.hbm.xml:
* src/org/gnome/yarrr/Topic.java:
* src/org/gnome/yarrr/xmlrpc/DefaultMethods.java:
Change the way topic content is stored.
Now its all in one list, mixing topics and messages,
indexed by an atomically increasing (by using locks) index.
You get the new childrens since last update by requesting a
range of indexes:
first time, lastI = 0
i = t.getLastIndex();
children = t.getChildren(lastI, i)
lastI = i
This way you'll never miss a child, and you'll
never get it twice. Also, the locking makes concurrent
message addition work (it used to throw an exception
due to the collection state not being up to date).

The querying by timestamps is still supported, but
we should deprecate this due to it being racy.

* src/org/gnome/yarrr/tests/DBUsingTest.java:
* src/org/gnome/yarrr/tests/TopicTests.java:
* src/org/gnome/yarrr/tests/TestInitializer.java:
Fix test to run ok.

* src/org/gnome/yarrr/hibernate/HibernateUtil.java:
Add initialized() call.

* src/org/gnome/yarrr/Message.java:
Fix up message deleteAll.

* Documentation/Setting up Tomcat.txt:
Fix type in configuration docs.

URL : 
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=yarrr&who=alexl&date=explicit&mindate=2005-02-09%2013:09&maxdate=2005-02-09%2013:11

_______________________________________________
cvs-commits-list mailing list
cvs-commits-list@gnome.org
http://mail.gnome.org/mailman/listinfo/cvs-commits-list

Reply via email to