log_register.c revision 1
1N/A * See the file LICENSE for redistribution information. 1N/A * Copyright (c) 1996, 1997, 1998 1N/A * Sleepycat Software. All rights reserved. 1N/A#
endif /* not lint */ 1N/A * Register a file name. 1N/A /* Check the arguments. */ 1N/A /* Get the log file id. */ 1N/A * See if we've already got this file in the log, finding the 1N/A * (maximum+1) in-use file id and some available file id (if we 1N/A * find an available fid, we'll use it, else we'll have to allocate 1N/A * one after the maximum that we found). 1N/A if (
fnp->
ref == 0) {
/* Entry is not in use. */ 1N/A /* Fill in fnp structure. */ 1N/A else /* Allocate a new one. */ 1N/A /* Only do the insert if we allocated a new fnp. */ 1N/A * We should grow the region. 1N/A * Discard a registered file name. 1N/A /* Find the entry in the log. */ 1N/A /* Unlog the registry. */ 1N/A * If more than 1 reference, just decrement the reference and return. 1N/A * Otherwise, free the name. 1N/A * Remove from the process local table. If this operation is taking 1N/A * place during recovery, then the logid was never added to the table, 1N/A * so do not remove it.