From: Sasa M. <sa...@us...> - 2004-05-21 10:41:02
|
Update of /cvsroot/jrobin/src/org/jrobin/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19251/org/jrobin/core Modified Files: RrdFileBackend.java RrdMemoryBackend.java RrdPrimitive.java Log Message: minor changes Index: RrdMemoryBackend.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/RrdMemoryBackend.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RrdMemoryBackend.java 20 May 2004 10:34:00 -0000 1.1 --- RrdMemoryBackend.java 21 May 2004 10:40:50 -0000 1.2 *************** *** 78,82 **** /** ! * This method is required by the base class definition, but has no effect at all. */ public void close() { --- 78,83 ---- /** ! * This method is required by the base class definition, but it does not ! * releases any memory resources at all. */ public void close() { Index: RrdPrimitive.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/RrdPrimitive.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RrdPrimitive.java 20 May 2004 10:29:33 -0000 1.6 --- RrdPrimitive.java 21 May 2004 10:40:50 -0000 1.7 *************** *** 109,112 **** backend.writeString(pointer, value); } - } --- 109,111 ---- Index: RrdFileBackend.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/RrdFileBackend.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RrdFileBackend.java 20 May 2004 10:34:00 -0000 1.1 --- RrdFileBackend.java 21 May 2004 10:40:50 -0000 1.2 *************** *** 46,50 **** super(path); file = new RandomAccessFile(path, readOnly? "r": "rw"); ! lockFile(lockMode); } --- 46,54 ---- super(path); file = new RandomAccessFile(path, readOnly? "r": "rw"); ! // We'll try to lock the file only in "rw" mode ! // locks are meaningless for read-only access ! if(!readOnly) { ! lockFile(lockMode); ! } } |