ozeigermann    2004/04/08 06:21:14

  Modified:    src/stores/org/apache/slide/store/txfile
                        XMLResourceDescriptor.java
  Log:
  Reset registeredForSaving when no longer applicable
  
  Revision  Changes    Path
  1.11      +5 -3      
jakarta-slide/src/stores/org/apache/slide/store/txfile/XMLResourceDescriptor.java
  
  Index: XMLResourceDescriptor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/stores/org/apache/slide/store/txfile/XMLResourceDescriptor.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- XMLResourceDescriptor.java        8 Apr 2004 10:31:08 -0000       1.10
  +++ XMLResourceDescriptor.java        8 Apr 2004 13:21:14 -0000       1.11
  @@ -569,6 +569,7 @@
           try {
               os = rm.writeResource(txId, loadPath);
               save(os);
  +            registeredForSaving = false;
           } catch (ResourceManagerException e) {
               if (e.getStatus() == ResourceManagerException.ERR_NO_SUCH_RESOURCE) {
                   throw new ObjectNotFoundException(uri);
  @@ -630,6 +631,7 @@
           try {
               rm.deleteResource(txId, loadPath, false);
               object = null;
  +            registeredForSaving = false; // do not save what is no longer there
           } catch (ResourceManagerException e) {
               if (e.getStatus() == ResourceManagerException.ERR_NO_SUCH_RESOURCE) {
                   throw new ObjectNotFoundException(uri.toString());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to