Artificial intelligent assistant

oplog.rsにsystem系コレクションのオペレーションログを出力させたい。 mongod mongod,ProfilingLevel1system.profile arbiter (1) system.profile (2) oplog.rs(1) (3) arbiter(2) (2)oplog.rs(1) oplog.rssystem((1)system.profile)

> oplog.rssystem

_local_ DB _system.profile_

src/mongo/db/repl/oplog.cpp


bool oplogDisabled(OperationContext* txn,
ReplicationCoordinator::Mode replicationMode,
const NamespaceString& nss) {
if (replicationMode == ReplicationCoordinator::modeNone)
return true;

if (nss.db() == "local")
return true;

if (nss.isSystemDotProfile()) // == "system.profile"
return true;

if (!txn->writesAreReplicated())
return true;

fassert(28626, txn->recoveryUnit());

return false;
}




db.setProfilingLevel()MongoDB _system.profile_

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy f2e627ddeb351924bcf26e00418d3245