entryBuffer,
true); // readFullItem
entryLoaded = true;
if (currentEntryHeader.getType() !=
LogEntryType.LOG_ROLLBACK_START.getTypeNum()) {
DatabaseId dbId = getDatabaseId();
boolean isMapDb = dbId.equals(DbTree.ID_DB_ID);
useEntry = (!mapDbOnly || isMapDb);
}
}
/* Do a partial load during tracking if necessary. */
if (!trackIds) {
return useEntry;
}
DatabaseId dbIdToReset = null;
long fileNumToReset = -1;
/*
* Process db and txn id tracking entries. Note that these entries do
* not overlap with targetLogEntry.
*/
LNLogEntry lnEntry = null;
if (dbIdTrackingEntry != null) {
/* This entry has a db id */
lnEntry = dbIdTrackingEntry;
/*
* Do a full load to get DB ID from DatabaseImpl. Note that while a
* partial read gets the database id for the database that owns
* this LN, it doesn't get the database id for the database
* contained by a MapLN. That's what we're trying to track.
*/
lnEntry.readEntry(currentEntryHeader,
entryBuffer,
true); // readFullItem
entryLoaded = true;
MapLN mapLN = (MapLN) lnEntry.getMainItem();
DatabaseId dbId = mapLN.getDatabase().getId();
int dbIdVal = dbId.getId();
maxDbId = (dbIdVal > maxDbId) ? dbIdVal : maxDbId;
minReplicatedDbId = (dbIdVal < minReplicatedDbId) ?
dbIdVal : minReplicatedDbId;
/*