Examples of unlatch()


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

          // Update the previous record header to point to new portion
          if (curPage == this)
            updateOverflowDetails(this, handle, portionHandle);
          else
            updateOverflowDetails(handle, portionHandle);
          op.unlatch();
        }
                else
                {

          // See earlier comments on checking row reserved space.
View Full Code Here

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

      // into the storable row.

    } finally {

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

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

                                                             encryptionBuf, false);
                        backupRaf.write(dataToWrite, 0, pageSize);

                        // unlatch releases page from cache, see
                        // StoredPage.releaseExclusive()
                        page.unlatch();
                        page = null;

                        // check if some one wants to commit drop the table while
                        // conatiner is being written to the backup. If so,
                        // abort  the backup and restart it once the drop
View Full Code Here

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

                    inBackup = false;
                    notifyAll();
                }

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

                // if backup of container is not complete, close the file
                // handles and  remove the container file from the backup
View Full Code Here

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

                                                     encryptionBuf,
                                                     true);
                newRaf.write(dataToWrite, 0, pageSize);

                // unlatch releases page from cache.
                page.unlatch();
                page = null;
            }

            // sync the new version of the container.
            newRaf.sync(true);
View Full Code Here

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

                                    ioe,
                                    newFile);
        } finally {

            if (page != null) {
                page.unlatch();
                page = null;
            }
           
            if (newRaf != null) {
                try {
View Full Code Here

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

                    // If the lock manager were changed to allow latches to be
                    // transferred between transactions, wouldn't need to
                    // unlatch to do the transfer, and would avoid having to
                    // retry in these cases (beetle 4011).

            page.unlatch();
            page = null;

            // need to find it in the cache again since unlatch also
                    // unkept the page from the cache
            page = (BasePage)pageCache.find(pkey);
View Full Code Here

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

                        page.getPageStatus() != BasePage.VALID_PAGE)
                    {
                        retry = true;
                        if (page != null)
                        {
                            page.unlatch();
                            page = null;
                        }
                        allocPage.unlatch();
                        allocPage = null;
                    }
View Full Code Here

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

                SanityManager.ASSERT(page.isLatched());
    }
    catch (StandardException se)
    {
      if (page != null)
        page.unlatch();
      page = null;

      throw se;      // rethrow error
    }
    finally
View Full Code Here

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

    // readers) if that is needed
    if ((page.isOverflowPage() && !overflowOK) ||
      (page.getPageStatus() != BasePage.VALID_PAGE))
    {
      // unlatch releases page from cache, see StoredPage.releaseExclusive()
            page.unlatch();
      page = null;
    }

    return page;
  }
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.