Changeset 6511


Ignore:
Timestamp:
Aug 12, 2014, 11:01:09 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #1828: Calling Directory.getNew() multiple times with overlapping non-existing paths

Must clean up the cache also if the transaction is rolled back.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-stable/src/core/net/sf/basedb/core/Directory.java

    r6509 r6511  
    192192              @Override
    193193              public void onRollback()
    194               {}
    195              
    196               @Override
    197               public void onBeforeCommit()
    198194              {
    199195                DIRECTORY_CACHE.remove();
     
    201197             
    202198              @Override
     199              public void onBeforeCommit()
     200              {}
     201             
     202              @Override
    203203              public void onAfterCommit()
    204               {}
     204              {
     205                DIRECTORY_CACHE.remove();
     206              }
    205207            }
    206208          );
Note: See TracChangeset for help on using the changeset viewer.