单选题The log is a sequence of log records recording all the update activities in the database. Whenever a transaction performs a write, it is essential that ______
A. the log record for that write be created and added to the log, after the database is modified
B. the log record for that write be created and added to the log, before the database is modified
C. the log record for that write be created and added to the log, as soon as the database is modified
D. the log record for that write be created and added to the log, time is not important