Search in sources :

Example 1 with LockMode

use of alluxio.concurrent.LockMode in project alluxio by Alluxio.

the class LockedInodePath method bootstrapTraversal.

private void bootstrapTraversal() {
    if (!mLockList.isEmpty()) {
        return;
    }
    LockMode edgeLock = LockMode.READ;
    LockMode inodeLock = LockMode.READ;
    if (mPathComponents.length == 1) {
        if (mLockPattern == LockPattern.WRITE_EDGE) {
            edgeLock = LockMode.WRITE;
            inodeLock = LockMode.WRITE;
        } else if (mLockPattern == LockPattern.WRITE_INODE) {
            inodeLock = LockMode.WRITE;
        }
    }
    mLockList.lockRootEdge(edgeLock);
    mLockList.lockInode(mRoot, inodeLock);
}
Also used : LockMode(alluxio.concurrent.LockMode)

Aggregations

LockMode (alluxio.concurrent.LockMode)1