Examples of unlatch()


Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

        finally
        {

      if (firstPage != null)
            {
        firstPage.unlatch();
        firstPage = null;
      }
     
      containerCache.release(container);
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

        // work gets fired twice, in that case, the second time it is
        // fired, this overflow page may not part of this row chain
        // that is being updated.
        Page firstPageOnColumnChain = getOverflowPage(overflowPage);
        PageTimeStamp ts = firstPageOnColumnChain.currentTimeStamp();
        firstPageOnColumnChain.unlatch();

        RawTransaction rxact = (RawTransaction)owner.getTransaction();

        ReclaimSpace work =
          new ReclaimSpace(ReclaimSpace.COLUMN_CHAIN,
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

      ((BasePage)p).restoreRecordFromStream(in, row);

    } finally {

      if (p != null) {
        p.unlatch();
        p = null;
      }
    }
  }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

            for (int i = 3; i > 0; i--)
            {
                Page page = addPage(handle, false);
                lastInsertedPage[i] = page.getPageNumber();
                page.unlatch();
            }
        }
    }

  /*
 
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

                // If no purge happened on the page and the page is not
                // removed, feel free to unlatch it.  Otherwise, let
                // transaction commit take care of it.
        if (!purgingDone)
                {
                    page.unlatch();
                    page = null;
                }
            }
        }
        else
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

            }
        }
        finally
        {
            if (page != null)
                page.unlatch();

            if (container != null)
                container.close();
        }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

            {
                SanityManager.DEBUG_PRINT(
                    "p_heap", ConglomerateUtil.debugPage(page, 0, false, row));

                long pageid = page.getPageNumber();
                page.unlatch();
                page = container.getNextPage(pageid);
            }
        }

        return;
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

        while (page != null)
        {
            this.diag_page(page, prop, stat);
            pageid = page.getPageNumber();
            page.unlatch();
            page = container.getNextPage(pageid);
        }

        return(this.diag_tabulate(prop, stat));
    }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.Page.unlatch()

            // Check to see if there is enough space on the page
            // for the row.
            rh = page.insert(row, null, insert_mode,
        AccessFactoryGlobals.HEAP_OVERFLOW_THRESHOLD);
            page.unlatch();
            page = null;

            // If we have found a page with enough space for the row,
            // insert it and release exclusive access to the page.
            if (rh != null)
View Full Code Here

Examples of org.apache.derby.impl.store.raw.data.BasePage.unlatch()

    if (!recordHeader.hasOverflow())
      return super.fetchNumFieldsAtSlot(slot);

    BasePage overflowPage = getOverflowPage(recordHeader.getOverflowPage());
    int count = overflowPage.fetchNumFieldsAtSlot(getOverflowSlot(overflowPage, recordHeader));
    overflowPage.unlatch();
    return count;
  }

    /**
     * Move record to a page toward the beginning of the file.
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.