/** * Returns a new or recycled _Node instance, latched exclusively, marked * dirty and unevictable. Caller must hold commit lock. * * @param mode MODE_UNEVICTABLE if allocated node cannot be automatically evicted */ _Node allocDirtyNode(int mode) throws IOException { _Node node = mPageDb.allocLatchedNode(this, mode); /*P*/ // [| if (mFullyMapped) { node.mPage = mPageDb.dirtyPage(node.mId); } /*P*/ // ] node.mContext.addDirty(node, mCommitState); return node; }
/** * Returns a new or recycled _Node instance, latched exclusively, marked * dirty and unevictable. Caller must hold commit lock. * * @param mode MODE_UNEVICTABLE if allocated node cannot be automatically evicted */ _Node allocDirtyNode(int mode) throws IOException { _Node node = mPageDb.allocLatchedNode(this, mode); /*P*/ // [| if (mFullyMapped) { node.mPage = mPageDb.dirtyPage(node.mId); } /*P*/ // ] mDirtyList.add(node, mCommitState); return node; }
/** * Returns a new or recycled _Node instance, latched exclusively, marked * dirty and unevictable. Caller must hold commit lock. * * @param mode MODE_UNEVICTABLE if allocated node cannot be automatically evicted */ _Node allocDirtyNode(int mode) throws IOException { _Node node = mPageDb.allocLatchedNode(this, mode); /*P*/ // [| if (mFullyMapped) { node.mPage = mPageDb.dirtyPage(node.mId); } /*P*/ // ] mDirtyList.add(node, mCommitState); return node; }