mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
dur compile
This commit is contained in:
parent
59f8903026
commit
0317b34be5
11
db/dur.cpp
11
db/dur.cpp
@ -489,7 +489,11 @@ namespace mongo {
|
||||
|
||||
void unlinkThread();
|
||||
void recover();
|
||||
void _debugCheckLastDeclaredWrite() { return getDur().debugCheckLastDeclaredWrite(); }
|
||||
void _debugCheckLastDeclaredWrite() {
|
||||
#if defined(_DEBUG)
|
||||
getDur().debugCheckLastDeclaredWrite();
|
||||
#endif
|
||||
}
|
||||
|
||||
void DurableImpl::startup() {
|
||||
if( !cmdLine.dur )
|
||||
@ -501,9 +505,12 @@ namespace mongo {
|
||||
boost::thread t(durThread);
|
||||
boost::thread t2(unlinkThread);
|
||||
}
|
||||
} // namespace dur
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
} // namespace dur
|
||||
|
||||
|
||||
} // namespace mongo
|
||||
|
||||
|
@ -89,7 +89,7 @@ namespace mongo {
|
||||
public:
|
||||
AlignedBuilder _ab; // for direct i/o writes to journal
|
||||
|
||||
CommitJob() : _hasWritten(false), _ab(4 * 1024 * 1024) { }
|
||||
CommitJob() : _ab(4 * 1024 * 1024) , _hasWritten(false) { }
|
||||
|
||||
/** record/note an intent to write */
|
||||
void note(WriteIntent& w);
|
||||
|
@ -199,7 +199,7 @@ namespace mongo {
|
||||
}
|
||||
|
||||
if( params.count("dur") ) {
|
||||
enableDurability();
|
||||
dur::enableDurability();
|
||||
cmdLine.dur = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user