~pbeaman/akiban-persistit/dynamic-volumes

« back to all changes in this revision

Viewing changes to src/main/java/com/persistit/Volume.java

  • Committer: Peter Beaman
  • Date: 2013-03-14 15:16:24 UTC
  • Revision ID: pbeaman@akiban.com-20130314151624-606e4l2mfi03mqj2
Synchronize volume open

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
     * 
457
457
     * @throws PersistitException
458
458
     */
459
 
    void open(final Persistit persistit) throws PersistitException {
 
459
    synchronized void open(final Persistit persistit) throws PersistitException {
460
460
        checkClosing();
 
461
        if (isOpened()) {
 
462
            return;
 
463
        }
461
464
        if (_specification == null) {
462
465
            throw new IllegalStateException("Missing VolumeSpecification");
463
466
        }