numWriteLocks = writeInfo.size();
TxnCommit commitRecord =
new TxnCommit(id, lastLoggedLsn);
if (flushSyncBehavior == TXN_SYNC) {
/* Flush and sync required. */
commitLsn = logManager.
logForceFlush(commitRecord, true);
} else if (flushSyncBehavior == TXN_WRITE_NOSYNC) {
/* Flush but no sync required. */
commitLsn = logManager.
logForceFlush(commitRecord, false);