Examples of releaseExclusiveLock()


Examples of com.orientechnologies.common.concur.resource.OSharedResourceExternal.releaseExclusiveLock()

    System.out.println("Read Locks: " + (System.currentTimeMillis() - timer - fixed));
    timer = System.currentTimeMillis();

    for (int i = 0; i < MAX; ++i) {
      lock.acquireExclusiveLock();
      lock.releaseExclusiveLock();
    }

    System.out.println("Write Locks: " + (System.currentTimeMillis() - timer - fixed));
    timer = System.currentTimeMillis();
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndex.releaseExclusiveLock()

      }
    } finally {
      // RELEASE INDEX LOCKS IF ANY
      if (lockedIndexes != null)
        for (OIndexMVRBTreeAbstract index : lockedIndexes) {
          index.releaseExclusiveLock();
        }
    }
  }

  protected void checkTransaction() {
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndexMVRBTreeAbstract.releaseExclusiveLock()

      }
    } finally {
      // RELEASE INDEX LOCKS IF ANY
      if (lockedIndexes != null)
        for (OIndexMVRBTreeAbstract index : lockedIndexes) {
          index.releaseExclusiveLock();
        }
    }
  }

  protected void checkTransaction() {
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.releaseExclusiveLock()

                  logPageChanges(prevPage, fileId, prevPageIndex, false);

                  prevPageCacheEntry.markDirty();
                } finally {
                  prevPageCacheEntry.releaseExclusiveLock();
                  diskCache.release(prevPageCacheEntry);
                }
              }

              localPage.replaceRecord(recordPosition, newRecordChunk, recordVersion.getCounter() != -2 ? recordVersion : null);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.releaseExclusiveLock()

                logPageChanges(prevPage, fileId, prevPageIndex, false);

                prevPageCacheEntry.markDirty();
              } finally {
                prevPageCacheEntry.releaseExclusiveLock();
                diskCache.release(prevPageCacheEntry);
              }
            }

            prevPageRecordPointer = addedPagePointer;
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.releaseExclusiveLock()

      int freeSpace = localPage.getFreeSpace();
      recordSizesDiff = initialFreeSpace - freeSpace;

      logPageChanges(localPage, fileId, pageIndex, newRecord);
    } finally {
      cacheEntry.releaseExclusiveLock();
      diskCache.release(cacheEntry);
    }

    updateFreePagesIndex(freePageIndex, pageIndex, trackMode);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.releaseExclusiveLock()

          logPageChanges(prevPage, fileId, prevPageIndex, false);

          prevPageCacheEntry.markDirty();
        } finally {
          prevPageCacheEntry.releaseExclusiveLock();
          diskCache.release(prevPageCacheEntry);
        }
      }

      if (nextPageIndex >= 0) {
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.releaseExclusiveLock()

          assert calculateFreePageIndex(nextPage) == prevFreePageIndex;
          nextPage.setPrevPage(prevPageIndex);

          logPageChanges(nextPage, fileId, nextPageIndex, false);
        } finally {
          nextPageCacheEntry.releaseExclusiveLock();
          diskCache.release(nextPageCacheEntry);
        }
      }

      localPage.setNextPage(-1);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.releaseExclusiveLock()

            logPageChanges(oldFreeLocalPage, fileId, oldFreePage, false);

            oldFreePageCacheEntry.markDirty();
          } finally {
            oldFreePageCacheEntry.releaseExclusiveLock();
            diskCache.release(oldFreePageCacheEntry);
          }

          localPage.setNextPage(oldFreePage);
          localPage.setPrevPage(-1);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.OCacheEntry.releaseExclusiveLock()

            this.rootBucketPointer.getPageOffset(), true, keySerializer, valueSerializer, getTrackMode());
        rootBucket.setTreeSize(0);

        super.logPageChanges(rootBucket, fileId, this.rootBucketPointer.getPageIndex(), true);
      } finally {
        rootCacheEntry.releaseExclusiveLock();
        diskCache.release(rootCacheEntry);
      }

      super.endAtomicOperation(false);
    } catch (Throwable e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.